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 ) #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;
}