<feed xmlns='http://www.w3.org/2005/Atom'>
<title>android-x86-mesa.git/src/glsl/glcpp/tests/011-define-func-empty.c.expected, branch r300</title>
<subtitle>Androïd/x86 port of Mesa drivers
</subtitle>
<id>https://git.hiegel.fr/cgit/android-x86-mesa.git/atom?h=r300</id>
<link rel='self' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/atom?h=r300'/>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/'/>
<updated>2010-07-21T00:01:12Z</updated>
<entry>
<title>glcpp: Avoid accidental token pasting in preprocessed result.</title>
<updated>2010-07-21T00:01:12Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-07-20T23:44:03Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=e1acbfca322c4ac720707ec8d3fda08fab65a30b'/>
<id>urn:sha1:e1acbfca322c4ac720707ec8d3fda08fab65a30b</id>
<content type='text'>
Consider this test case:

	#define EMPTY
	int foo = 1+EMPTY+4;

The expression should compile as the sequence of tokens 1, PLUS,
UNARY_POSITIVE, 4. But glcpp has been failing for this case since it
results in the string "1++4" which a compiler correctly sees as a
syntax error, (1, POST_INCREMENT, 4).

We fix this by changing any macro with an empty definition to result
in a single SPACE token rather than nothing. This then gives "1+ +4"
which compiles correctly.

This commit does touch up the two existing test cases which already
have empty macros, (to add the space to the expected result).

It also adds a new test case to exercise the above scenario.
</content>
</entry>
<entry>
<title>glsl2: Move the compiler to the subdirectory it will live in in Mesa.</title>
<updated>2010-06-24T22:36:00Z</updated>
<author>
<name>Eric Anholt</name>
<email>eric@anholt.net</email>
</author>
<published>2010-06-24T22:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=29285882676388aacff123e8bdf025904abf8ea9'/>
<id>urn:sha1:29285882676388aacff123e8bdf025904abf8ea9</id>
<content type='text'>
</content>
</entry>
</feed>
