glcpp: Do not remove spaces to preserve locations.
authorSir Anthony <anthony@adsorbtion.org>
Wed, 5 Feb 2014 14:15:56 +0000 (20:15 +0600)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Mar 2014 09:38:32 +0000 (01:38 -0800)
commit6e39a8f6ec41b44f41b3c4a710478a2e442efc0a
treea45113418a077fdd5bcaa11a2df5cbc70e488ac8
parentda2275cd9b4435f9c6af85ddc3f6be0a7e5b24cc
glcpp: Do not remove spaces to preserve locations.

After preprocessing by glcpp all adjacent spaces were replaced by
single one and glsl parser received column-shifted shader source.
It negatively affected ast location set up and produced wrong error
messages for heavily-spaced shaders.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glcpp/glcpp-lex.l
src/glsl/glcpp/tests/000-content-with-spaces.c
src/glsl/glcpp/tests/000-content-with-spaces.c.expected
src/glsl/glcpp/tests/100-macro-with-colon.c.expected