yytext is an array in lex, but a char * in flex
This commit is contained in:
parent
81e80b2cd8
commit
36e47ad79b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue