diff options
author | Sven Gothel <[email protected]> | 2009-08-05 09:57:37 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-08-05 09:57:37 -0700 |
commit | 814050670c7b523d0cdd049c89abf657a230c866 (patch) | |
tree | 8a09e6b316d3b9842c2418437acfe62bc331bce1 /src/java/com/sun/gluegen/GlueGen.java | |
parent | 55cf5a4f224c87542b65d820b851f66d371c4062 (diff) |
Fix: Allow all constanst defined by enums; Add PFD_ defines.
Diffstat (limited to 'src/java/com/sun/gluegen/GlueGen.java')
-rw-r--r-- | src/java/com/sun/gluegen/GlueGen.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/GlueGen.java b/src/java/com/sun/gluegen/GlueGen.java index 9221c3a..3804795 100644 --- a/src/java/com/sun/gluegen/GlueGen.java +++ b/src/java/com/sun/gluegen/GlueGen.java @@ -227,12 +227,12 @@ public class GlueGen implements GlueEmitterControls { for (int i = 0; i < enumeration.getNumEnumerates(); ++i) { String enumElementName = enumeration.getEnumName(i); String value = String.valueOf(enumeration.getEnumValue(i)); - constants.add(new ConstantDefinition(enumElementName, value, enumName)); + constants.add(new ConstantDefinition(enumElementName, value, true, enumName)); } } for (Iterator iter = lexer.getDefines().iterator(); iter.hasNext(); ) { Define def = (Define) iter.next(); - constants.add(new ConstantDefinition(def.getName(), def.getValue(), null)); + constants.add(new ConstantDefinition(def.getName(), def.getValue(), false, null)); } functions = headerParser.getParsedFunctions(); |