Explorar o código

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

ceriel %!s(int64=33) %!d(string=hai) anos
pai
achega
92c55fa13a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      util/ceg/as_parser/pars.g

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

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