wpp: Reset lexer state after unexpected end of file.

This commit is contained in:
Józef Kucia 2012-03-10 19:58:43 +01:00 committed by Alexandre Julliard
parent 2c5a7743be
commit 1d9bb50230
1 changed files with 3 additions and 0 deletions

View File

@ -774,7 +774,10 @@ void pp_writestring(const char *format, ...)
if(!bep)
{
if(YY_START != INITIAL)
{
ppy_error("Unexpected end of file during preprocessing");
BEGIN(INITIAL);
}
yyterminate();
}
else if(bep->should_pop == 2)