glcpp: Support #elif(expression) with no intervening space.
authorMatt Turner <mattst88@gmail.com>
Mon, 26 Nov 2012 19:53:45 +0000 (11:53 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 28 Nov 2012 18:27:02 +0000 (10:27 -0800)
commitc3a465ae98be6db1aee582f15380944b8faaeafc
tree041576120971e4a187c66452138daba1cee986c3
parentaed466192a78ff2bb3db877a9599424de708cf90
glcpp: Support #elif(expression) with no intervening space.

And add test cases to ensure that this works
- 110 verifies that glcpp rejects #elif<digits> which glcpp
  previously accepted.
- 111 verifies that glcpp accepts #if followed immediately by
  (, +, -, !, or ~.
- 112 does the same as 111 but for #elif.

See 17f9beb6 for #if change.
Reviewed-by: Carl Worth <cworth@cworth.org>
src/glsl/glcpp/glcpp-lex.l
src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c [new file with mode: 0644]
src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected [new file with mode: 0644]
src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c [new file with mode: 0644]
src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected [new file with mode: 0644]
src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c [new file with mode: 0644]
src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected [new file with mode: 0644]