glcpp: Add support for "redefined macro" error.
authorCarl Worth <cworth@cworth.org>
Wed, 18 Aug 2010 06:20:58 +0000 (23:20 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 18 Aug 2010 06:41:53 +0000 (23:41 -0700)
commit3882cf21696d2576bd3d855dbc97c9354f72a15f
treed5b51156ea4b55fb7a0b5331b49f68c8ca0e8042
parent105e2137d67b98c24251be3586985fb61aeaf28a
glcpp: Add support for "redefined macro" error.

Carefully avoiding printing any error when the new definition matches
the existing definition.

This fixes the recently-added 088-redefine-macro-legitimate.c and
089-redefine-macro-error.c tests as well as glsparsertest/preprocess1
in piglit.
src/glsl/glcpp/glcpp-parse.y