summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/glcpp.c
AgeCommit message (Collapse)Author
2010-08-23glcpp: Make standalone preprocessor work with a tty as stdinCarl Worth
Previously glcpp would silently abort if it couldn't fstat the file being read, (so it would work with stdin redirected from a file, but would not work with stdin as a tty). The stat was so that glcpp could allocate a buffer for the file content in a single call. We now use talloc_realloc instead, (even if the fstat is possible). This is theoretically less efficient, but quite irrelevant, (particularly because the standalone preprocessor is used only for testing).
2010-08-23glcpp: Fix segfault in standalone preprocessor for "file not found", etc.Carl Worth
This error message was missing so that the program would simply segfault if the provided filename could not be opened for some reason. While we're at it, we add explicit support for a filename of "-" to indicate input from stdin.
2010-08-17glcpp: Allow standalone glcpp to accept a filename as first argument.Carl Worth
This is useful for debugging the preprocessor.
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