Bug 47979

GemStone/S 64 Bit

3.4.5, 3.4.4, 3.4.3, 3.4.2, 3.4.1, 3.4, 3.3.8, 3.3.7, 3.3.6, 2.2.9, older versions

3.5

CHeader has limitations in parsing header file syntax

Some C header file syntax cannot be read by GemStone's CHeader class. This includes, but is not limited to, the syntax used in /usr/include/zlib.h and its include files, in recent versions of Linux. These header files cannot be processed by CHeader.

An an error such as this may be reported.
    unexpected token: #'identifier' -> 'va' near line 1758 in file /usr/include/zlib.h (Error)

Workaround

Using the native C preprocessor on the header files before using CHeader can avoid issues. This preprocessing is built into CHeader for versions in which this bug is fixed.


                

Last updated: 10/5/20