use %option noyywrap

This commit is contained in:
josh committed 2018-04-18 20:46:14 -04:00
1 parent b2072de717
commit 866dd42196
2 files changed
+2 -5

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ void handle_loc(const char * input);
%}
%option noyywrap
%x str
%%
-5
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");