Browse Source

yytext is an array in lex, but a char * in flex

ceriel 33 years ago
parent
commit
92c55fa13a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      util/ceg/as_parser/pars.g

+ 4 - 0
util/ceg/as_parser/pars.g

@@ -41,7 +41,11 @@
 
 
 #include "decl.h"
 #include "decl.h"
 extern int lineno, yyleng;
 extern int lineno, yyleng;
+#ifdef FLEX
 extern char *yytext;
 extern char *yytext;
+#else
+extern char yytext[];
+#endif
 
 
 }
 }