Commit 1405c00e authored by Alexandre Julliard's avatar Alexandre Julliard

wrc: Use an EOF rule instead of lex_destroy for compatibility with prediluvian flex versions.

parent c6ae945b
...@@ -34,6 +34,5 @@ extern char *parser_text; ...@@ -34,6 +34,5 @@ extern char *parser_text;
extern int yy_flex_debug; extern int yy_flex_debug;
int parser_lex(void); int parser_lex(void);
int parser_lex_destroy(void);
#endif #endif
...@@ -586,6 +586,7 @@ L\" { ...@@ -586,6 +586,7 @@ L\" {
isprint(*yytext & 0xff) ? *yytext : '.', *yytext, YY_START); isprint(*yytext & 0xff) ? *yytext : '.', *yytext, YY_START);
} }
<<EOF>> current_codepage = -1; yyterminate();
%% %%
/* These dup functions copy the enclosed '\0' from /* These dup functions copy the enclosed '\0' from
......
...@@ -284,7 +284,6 @@ static int load_file( const char *input_name, const char *output_name ) ...@@ -284,7 +284,6 @@ static int load_file( const char *input_name, const char *output_name )
ret = parser_parse(); ret = parser_parse();
fclose(parser_in); fclose(parser_in);
parser_lex_destroy();
if (temp_name) if (temp_name)
{ {
unlink( temp_name ); unlink( temp_name );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment