History log of /external/mesa3d/src/glsl/glcpp/tests/086-reserved-macro-names.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c4aaf7943c2cdff0e2148b5c05813356dc99696d 30-Sep-2011 Carl Worth <cworth@cworth.org> glcpp: Raise error if defining any macro containing two consecutive underscores

The specification reserves any macro name containing two consecutive
underscores, (anywhere within the name). Previously, we only raised
this error for macro names that started with two underscores.

Fix the implementation to check for two underscores anywhere, and also
update the corresponding 086-reserved-macro-names test.

This also fixes the following two piglit tests:

spec/glsl-1.30/preprocessor/reserved/double-underscore-02.frag
spec/glsl-1.30/preprocessor/reserved/double-underscore-03.frag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Carl Worth <cworth@cworth.org>
/external/mesa3d/src/glsl/glcpp/tests/086-reserved-macro-names.c
cb5ea0c79bd74ea6263d54302ed19c243ceb05de 11-Aug-2010 Carl Worth <cworth@cworth.org> glcpp: Add several tests for diagnostics.

Which are proving to be useful since some of these tests are not yet
acting as desired, (in particular, the unterminated if test is not
generating any diagnostic).
/external/mesa3d/src/glsl/glcpp/tests/086-reserved-macro-names.c