yytext is an array in lex, but a char * in flex
This commit is contained in:
parent
81e80b2cd8
commit
36e47ad79b
|
@ -41,7 +41,11 @@
|
|||
|
||||
#include "decl.h"
|
||||
extern int lineno, yyleng;
|
||||
#ifdef FLEX
|
||||
extern char *yytext;
|
||||
#else
|
||||
extern char yytext[];
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue