build system 3
[henge/webcc.git] / src / apc / lexer.c
index dd1eb81..c092e5e 100644 (file)
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 #include <dirent.h>
 /* Local */
-//#include "parser.tab.h"
+#include "parser.tab.h"
 #ifndef DE_STACKSIZE
 #define DE_STACKSIZE 1024
 #endif
@@ -41,7 +41,7 @@ int scanner(void);
 static inline
 int dredge_current_depth(void);
 extern //bison
-int yylval;
+YYSTYPE yylval;
 static
 struct tok
 { int lval;
@@ -110,11 +110,11 @@ int lexer
 { if (TK_EMPTY)
     { TK_INIT();
       if (scanner() == 0)
-        { yylval = 0;
+        { yylval.NUM = 0;
           return 0;
         }
     }
-  yylval = TK_POPI();
+  yylval.NUM = TK_POPI();
   return TK_POPI();
 }