Properly handle quoted number literals in MSI condition statements.

This commit is contained in:
Aric Stewart 2004-07-12 23:31:18 +00:00 committed by Alexandre Julliard
parent cd2065f170
commit d8b20cf53b
1 changed files with 6 additions and 1 deletions

View File

@ -399,6 +399,11 @@ literal:
{
$$ = $2;
}
| COND_DBLQ integer COND_DBLQ
{
static const WCHAR pi[] = {'%','i',0};
sprintfW($$,pi,$2);
}
;
symbol_i:
@ -501,7 +506,7 @@ static int COND_IsAlpha( WCHAR x )
static int COND_IsNumber( WCHAR x )
{
return( ( x >= '0' ) && ( x <= '9' ) );
return( (( x >= '0' ) && ( x <= '9' )) || (x =='-') );
}