use %option noyywrap

This commit is contained in:
Josh Holtrop 2018-04-18 20:46:14 -04:00
parent b2072de717
commit 866dd42196
2 changed files with 2 additions and 5 deletions

View File

@ -17,6 +17,8 @@ void handle_loc(const char * input);
%}
%option noyywrap
%x str
%%

View File

@ -461,11 +461,6 @@ static void handle_error(const char * str, const YYLTYPE * yylloc)
yylloc->first_column);
}
int yywrap(void)
{
return 1;
}
void parse(const char * filename)
{
yyin = fopen(filename, "r");