use %option noyywrap
This commit is contained in:
parent
b2072de717
commit
866dd42196
@ -17,6 +17,8 @@ void handle_loc(const char * input);
|
|||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%option noyywrap
|
||||||
|
|
||||||
%x str
|
%x str
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
@ -461,11 +461,6 @@ static void handle_error(const char * str, const YYLTYPE * yylloc)
|
|||||||
yylloc->first_column);
|
yylloc->first_column);
|
||||||
}
|
}
|
||||||
|
|
||||||
int yywrap(void)
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void parse(const char * filename)
|
void parse(const char * filename)
|
||||||
{
|
{
|
||||||
yyin = fopen(filename, "r");
|
yyin = fopen(filename, "r");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user