From 12a820c9d84cec0e2f36d9571ca841499b67eac4 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 21 Jun 2010 15:15:34 -0700 Subject: [PATCH] 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. --- glcpp/glcpp-lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l index fabe7566030..afddd7ddb32 100644 --- a/glcpp/glcpp-lex.l +++ b/glcpp/glcpp-lex.l @@ -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; -- 2.30.2