summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/GlueGen.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-20 23:16:40 +0100
committerMichael Bien <[email protected]>2010-02-20 23:16:40 +0100
commit0654a35529970aca2b2a42fe8291b178766ff460 (patch)
tree248e54bc4b64856a60c5455d6b3add38e8770ff8 /src/java/com/sun/gluegen/GlueGen.java
parentc16d2358346a72e4cb1c4a5b36749c7785912fcf (diff)
PCPP supports now simple macros.
fixed 'deprecated API' warnings in GlueGen.
Diffstat (limited to 'src/java/com/sun/gluegen/GlueGen.java')
-rw-r--r--src/java/com/sun/gluegen/GlueGen.java4
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 68d65d7..6a05d13 100644
--- a/src/java/com/sun/gluegen/GlueGen.java
+++ b/src/java/com/sun/gluegen/GlueGen.java
@@ -149,7 +149,7 @@ public class GlueGen implements GlueEmitterControls {
GnuCParser parser = new GnuCParser(lexer);
// set AST node type to TNode or get nasty cast class errors
- parser.setASTNodeType(TNode.class.getName());
+ parser.setASTNodeClass(TNode.class.getName());
TNode.setTokenVocabulary(GNUCTokenTypes.class.getName());
// invoke parser
@@ -167,7 +167,7 @@ public class GlueGen implements GlueEmitterControls {
TypeDictionary sd = new TypeDictionary();
headerParser.setStructDictionary(sd);
// set AST node type to TNode or get nasty cast class errors
- headerParser.setASTNodeType(TNode.class.getName());
+ headerParser.setASTNodeClass(TNode.class.getName());
// walk that tree
headerParser.translationUnit( parser.getAST() );