From 0654a35529970aca2b2a42fe8291b178766ff460 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 20 Feb 2010 23:16:40 +0100 Subject: PCPP supports now simple macros. fixed 'deprecated API' warnings in GlueGen. --- src/java/com/sun/gluegen/GlueGen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/com/sun/gluegen/GlueGen.java') 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() ); -- cgit v1.2.3