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

This commit is contained in:
Alexandre Julliard 2009-06-23 14:48:29 +02:00
parent c6ae945bf7
commit 1405c00ecb
3 changed files with 1 additions and 2 deletions

View File

@ -34,6 +34,5 @@ extern char *parser_text;
extern int yy_flex_debug;
int parser_lex(void);
int parser_lex_destroy(void);
#endif

View File

@ -586,6 +586,7 @@ L\" {
isprint(*yytext & 0xff) ? *yytext : '.', *yytext, YY_START);
}
<<EOF>> current_codepage = -1; yyterminate();
%%
/* These dup functions copy the enclosed '\0' from

View File

@ -284,7 +284,6 @@ static int load_file( const char *input_name, const char *output_name )
ret = parser_parse();
fclose(parser_in);
parser_lex_destroy();
if (temp_name)
{
unlink( temp_name );