mesa/src
Carl Worth a196ab1f8a glsl/glcpp: Add explicit error for "#define without macro name"
Previously, glcpp would emit an error like this if <EOF> happened to occur
immediately after the "#define", but in general would just get confused,
(leading to un-helpful error messages).

To fix things to generate a clean error message, we do a few things:

	1. Don't require horizontal whitespace immediately after #define

	2. Add a production for the error case, (DEFINE_TOKEN followed
	   immediately by a NEWLINE token).

	3. Make the lexer reset to the <INITIAL> state after every NEWLINE.

This 3rd point prevents the lexer from getting so confused and generating
further spurious errors in the file because it was stuck in the <DEFINE> start
condition.

We also drop the similar error message from the <EOF> rule since the
newly-added rule will have already printed the error message.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-08-07 16:08:28 -07:00
..
egl egl: Fix OpenGL ES version checks in _eglParseContextAttribList() 2014-08-04 18:31:26 -07:00
gallium draw: fix clipvertex trouble if position comes from gs 2014-08-06 18:01:33 +02:00
gbm gbm: Log at least one dlerror() when we fail to open any drivers. 2014-07-30 22:31:30 -07:00
getopt
glsl glsl/glcpp: Add explicit error for "#define without macro name" 2014-08-07 16:08:28 -07:00
glx glx/dri3: add GPU offloading support. 2014-07-01 13:07:52 +10:00
gtest
hgl
loader util: Gather some common macros 2014-08-04 11:07:10 -07:00
mapi glapi: Do not use backtrace on DragonFly. 2014-07-30 21:48:09 -07:00
mesa i965/vec4: Remove unused emit_bool_comparison method. 2014-08-07 16:00:24 -07:00
util util/tests/hash_table: Link against libmesautil instead of libmesa 2014-08-05 10:52:48 -07:00
Makefile.am src/Makefile.am: Move gtest before util 2014-08-04 13:21:08 -07:00
SConscript util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00