Jens Staal
2014-03-02 07:45:44 UTC
Hi
One issue that I currently have is that Watcom errors out on some enum
expressions in a header file, for example:
Error! E1009: Expecting '}' but found '7'
Error! E1026: Invalid declarator
(and so on for the following rows)
typedef enum _ARC_CODES
{
ESUCCESS,
E2BIG,
EACCES,
EAGAIN,
EBADF,
EBUSY,
EFAULT,
EINVAL,
EIO,
EISDIR,
EMFILE,
EMLINK,
ENAMETOOLONG,
ENODEV,
ENOENT,
ENOEXEC,
ENOMEM,
ENOSPC,
ENOTDIR,
ENOTTY,
ENXIO,
EROFS,
EMAXIMUM
} ARC_CODES
I have read the style instructions at
http://www.openwatcom.org/index.php/Style_Guide
and I have tried removing the _ARC_CODES thing before the {} and I have also
tried with putting all the elements in a single row (if line break was the
issue). I have also tried this trick:
#if defined(__WATCOMC__)
#pragma enum int
#endif
and neither solves the issue.
Is there something that I have missed?
One issue that I currently have is that Watcom errors out on some enum
expressions in a header file, for example:
Error! E1009: Expecting '}' but found '7'
Error! E1026: Invalid declarator
(and so on for the following rows)
typedef enum _ARC_CODES
{
ESUCCESS,
E2BIG,
EACCES,
EAGAIN,
EBADF,
EBUSY,
EFAULT,
EINVAL,
EIO,
EISDIR,
EMFILE,
EMLINK,
ENAMETOOLONG,
ENODEV,
ENOENT,
ENOEXEC,
ENOMEM,
ENOSPC,
ENOTDIR,
ENOTTY,
ENXIO,
EROFS,
EMAXIMUM
} ARC_CODES
I have read the style instructions at
http://www.openwatcom.org/index.php/Style_Guide
and I have tried removing the _ARC_CODES thing before the {} and I have also
tried with putting all the elements in a single row (if line break was the
issue). I have also tried this trick:
#if defined(__WATCOMC__)
#pragma enum int
#endif
and neither solves the issue.
Is there something that I have missed?