flex and bison now have different prefixes
authorMatthias Kramm <kramm@quiss.org>
Mon, 2 Feb 2009 19:01:23 +0000 (20:01 +0100)
committerMatthias Kramm <kramm@quiss.org>
Mon, 2 Feb 2009 19:01:23 +0000 (20:01 +0100)
lib/as3/main.c

index a5a4b62..4cbbb71 100644 (file)
@@ -36,15 +36,15 @@ void test_lexer(char*filename)
 {
     char*fullfilename = enter_file(filename, 0);
     FILE*fi = fopen(fullfilename, "rb");
-    avm2_set_in(fi);
+    as3_set_in(fi);
     while(1) {
-        int token = avm2_lex();
+        int token = as3_lex();
         if(token==T_EOF)
             break;
         if(token>=32 && token<256) {
             printf("'%c'\n", token);
         } else {
-            printf("%s\n", token2string(token, avm2_lval));
+            printf("%s\n", token2string(token, a3_lval));
         }
     }
 }