glcpp: Fix "dangerous trailing context" warning.

Flex couldn't be sure whether "def" and "ndef" were part of the #ifdef
and #ifndef patterns or the trailing context of the #if pattern.
This commit is contained in:
Kenneth Graunke 2010-06-21 15:15:34 -07:00 committed by Ian Romanick
parent d07bb7b83a
commit 12a820c9d8

View file

@ -97,7 +97,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
return HASH_IFNDEF;
}
{HASH}if/.*\n {
{HASH}if{HSPACE}/.*\n {
yyextra->lexing_if = 1;
yyextra->space_tokens = 0;
return HASH_IF;