summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/pp.c
Commit message (Collapse)AuthorAgeFilesLines
* glsl2: Include string.h in preprocessorJakob Bornecrantz2010-08-131-0/+1
|
* glcpp: Fix "unterminated if" diagnostic.Carl Worth2010-08-111-0/+3
| | | | | | | | | | | This was previously being appended to the output string *after* a copy of the supposedly final string was made and handed to the caller. So the diagnostic was never actually visible to the user. We fix this by moving the check for an unterminated #if from glcpp_parser_destroy to the calling function, preprocess. This fixes the test case 083-unterminated-if.c.
* glsl2: move declarations before codeBrian Paul2010-08-111-2/+4
|
* glcpp: Don't look for backslashes before the beginning of the string.Kenneth Graunke2010-07-301-3/+7
| | | | Fixes a valgrind error.
* glsl2: Conditionally define preprocessor tokens for optional extensionsIan Romanick2010-07-011-2/+3
| | | | | The only optional extension currently supported by the compiler is GL_EXT_texture_array.
* glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt2010-06-241-0/+155