use noyywrap option
This commit is contained in:
parent
513727f94c
commit
222c3bdcaa
15
src/scan.l
15
src/scan.l
|
@ -23,13 +23,16 @@
|
||||||
#define YY_EXIT_FAILURE ( (void)yyscanner, 2 )
|
#define YY_EXIT_FAILURE ( (void)yyscanner, 2 )
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%option reentrant
|
||||||
|
|
||||||
%option noyyalloc
|
%option noyyalloc
|
||||||
%option noyyrealloc
|
%option noyyrealloc
|
||||||
%option noyyfree
|
%option noyyfree
|
||||||
%option reentrant
|
|
||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
%option extra-type="struct parser_control *"
|
%option extra-type="struct parser_control *"
|
||||||
|
%option noyywrap
|
||||||
|
|
||||||
%option header-file="lex.yy.h"
|
%option header-file="lex.yy.h"
|
||||||
%option never-interactive
|
%option never-interactive
|
||||||
|
|
||||||
|
@ -190,13 +193,3 @@ yyfree(void * ptr, yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
return pic_free(yyextra->pic, ptr);
|
return pic_free(yyextra->pic, ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define UNUSED(v) ((void)(v))
|
|
||||||
|
|
||||||
int
|
|
||||||
yywrap(yyscan_t yyscanner)
|
|
||||||
{
|
|
||||||
UNUSED(yyscanner);
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue