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"
|
#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…
x
Reference in New Issue
Block a user