Re: [Mesa-dev] [PATCH] glcpp: Reject garbage after #else and #endif tokens

2012-11-06 Thread Ian Romanick
On 11/06/2012 11:40 AM, Matt Turner wrote: Previously we were accepting garbage after #else and #endif tokens when the previous preprocessor conditional had evaluated to false (eg, #if 0) When the preprocessor hits a false conditional, it switches the lexer into the SKIP state, in which it ignor

[Mesa-dev] [PATCH] glcpp: Reject garbage after #else and #endif tokens

2012-11-06 Thread Matt Turner
Previously we were accepting garbage after #else and #endif tokens when the previous preprocessor conditional had evaluated to false (eg, #if 0) When the preprocessor hits a false conditional, it switches the lexer into the SKIP state, in which it ignores non-control tokens. The parser pops the SK