glcpp: Demote "macro redefined" from an error to a warning
authorCarl Worth <cworth@cworth.org>
Mon, 23 Aug 2010 18:38:45 +0000 (11:38 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 28 Jan 2011 05:16:36 +0000 (15:16 +1000)
commitd3df641f0aba99b0b65ecd4d9b06798bca090a29
treed86a67214443202a65f0b986162b68c7a2cb09ff
parent476db2bd3d72440f54ff57c23da05dc1d624fee9
glcpp: Demote "macro redefined" from an error to a warning

The GLSL specification is vague here, (just says "as is standard for
C++"), though the C specifications seem quite clear that this should
be an error.

However, an existing piglit test (CorrectPreprocess11.frag) expects
this to be a warning, not an error, so we change this, and document in
README the deviation from the specification.
src/glsl/glcpp/README
src/glsl/glcpp/glcpp-parse.c
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/tests/089-redefine-macro-error.c.expected