use noyywrap option

This commit is contained in:
Yuichi Nishiwaki 2014-02-28 23:59:50 +09:00
parent 513727f94c
commit 222c3bdcaa
1 changed files with 4 additions and 11 deletions

View File

@ -23,13 +23,16 @@
#define YY_EXIT_FAILURE ( (void)yyscanner, 2 )
%}
%option reentrant
%option noyyalloc
%option noyyrealloc
%option noyyfree
%option reentrant
%option noinput
%option nounput
%option extra-type="struct parser_control *"
%option noyywrap
%option header-file="lex.yy.h"
%option never-interactive
@ -190,13 +193,3 @@ yyfree(void * ptr, yyscan_t yyscanner)
{
return pic_free(yyextra->pic, ptr);
}
#define UNUSED(v) ((void)(v))
int
yywrap(yyscan_t yyscanner)
{
UNUSED(yyscanner);
return 1;
}