glsl/glcpp: Rename HASH token to HASH_TOKEN
authorCarl Worth <cworth@cworth.org>
Wed, 25 Jun 2014 18:59:55 +0000 (11:59 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Jul 2014 22:11:49 +0000 (15:11 -0700)
commitdfdf9dc082cbab332457ea2dbe012eeb0d164ce4
tree0170d4e78244f84ece9c5dcafb01d354f041d765
parent0d5f5d127b2ccac29b12bc7377ccd8cd5b29c70b
glsl/glcpp: Rename HASH token to HASH_TOKEN

This is in preparation for the planned addition of a new <HASH> start
condition to the lexer. Both start conditions and token types are, of course,
in the same default C namespace, so a start condition and a token type with
the same name will collide. (And unfortunately, they are both apparently
implemented as equivalent numeric types so the collision is undetected at
compile time and simply leads to unpredictable behavior at run time.)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/glcpp/glcpp-lex.l
src/glsl/glcpp/glcpp-parse.y