Alexandre Julliard : wrc: Use an EOF rule instead of lex_destroy for compatibility with prediluvian flex versions .
Alexandre Julliard
julliard at winehq.org
Tue Jun 23 10:02:49 CDT 2009
Module: wine
Branch: master
Commit: 1405c00ecbcf5509c9475759b8230c019070b663
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1405c00ecbcf5509c9475759b8230c019070b663
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jun 23 14:48:29 2009 +0200
wrc: Use an EOF rule instead of lex_destroy for compatibility with prediluvian flex versions.
---
tools/wrc/parser.h | 1 -
tools/wrc/parser.l | 1 +
tools/wrc/wrc.c | 1 -
3 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tools/wrc/parser.h b/tools/wrc/parser.h
index e9fc8e6..b9e2045 100644
--- a/tools/wrc/parser.h
+++ b/tools/wrc/parser.h
@@ -34,6 +34,5 @@ extern char *parser_text;
extern int yy_flex_debug;
int parser_lex(void);
-int parser_lex_destroy(void);
#endif
diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l
index e706100..d92e973 100644
--- a/tools/wrc/parser.l
+++ b/tools/wrc/parser.l
@@ -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
diff --git a/tools/wrc/wrc.c b/tools/wrc/wrc.c
index 833d602..52267ab 100644
--- a/tools/wrc/wrc.c
+++ b/tools/wrc/wrc.c
@@ -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 );
More information about the wine-cvs
mailing list