glcpp: Rework handling of "defined" operator.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Jun 2010 06:06:54 +0000 (23:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Jun 2010 19:41:05 +0000 (12:41 -0700)
commit26e761edb26322eab497e884fcf7ae35fb3fd3e5
treebd1b8c0ea5582156df6ddb568363bbf038d050a6
parentbac0e371e373bc51b1b3c575d0a46e324c36bc4f
glcpp: Rework handling of "defined" operator.

It's now done in the grammar, and as a result, can easily handle
parenthesis.  defined ( identifier ) is now supported.

Fixes glcpp/tests/065-if-defined-parens.c.
glcpp/glcpp-parse.y