summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/pp.c
AgeCommit message (Collapse)Author
2011-01-31Convert everything from the talloc API to the ralloc API.Kenneth Graunke
2010-09-07glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0.Kenneth Graunke
Also define it if #version 100 is encountered.
2010-08-27glsl2: remove 'extern' keyword in .c fileBrian Paul
2010-08-25glsl/mesa: fixes for MSVCAras Pranckevicius
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-08-13glsl2: Include string.h in preprocessorJakob Bornecrantz
2010-08-11glcpp: Fix "unterminated if" diagnostic.Carl Worth
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.
2010-08-11glsl2: move declarations before codeBrian Paul
2010-07-30glcpp: Don't look for backslashes before the beginning of the string.Kenneth Graunke
Fixes a valgrind error.
2010-07-01glsl2: Conditionally define preprocessor tokens for optional extensionsIan Romanick
The only optional extension currently supported by the compiler is GL_EXT_texture_array.
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt