summaryrefslogtreecommitdiff
path: root/glcpp/glcpp.h
AgeCommit message (Collapse)Author
2010-06-23glcpp: Make standalone binary use preprocess().Kenneth Graunke
This prevents the two code paths from getting out of sync. Also, future work will need the shader source as a string anyway. Unfortunately, this copies and pastes load_text_file from main.cpp, with small changes (support for reading from stdin, talloc).
2010-06-21glcpp: Add glcpp_warning for printing warnings to the info log.Kenneth Graunke
2010-06-21glcpp: Add boolean 'error' flag.Kenneth Graunke
We used to check if the info log is non-empty, but when we print warnings, this will no longer be valid.
2010-06-21glcpp: Rename "errors" to "info_log."Kenneth Graunke
Eventually, we'll want to be be able to print out warnings as well.
2010-06-21glcpp: Add line locations to "Unterminated #if" error message.Kenneth Graunke
2010-06-21glcpp: Introduce new glcpp_error function.Kenneth Graunke
2010-06-21glcpp: Set locations on tokens.Kenneth Graunke
2010-06-21glcpp: Add plumbing to support line locations.Kenneth Graunke
2010-06-21glcpp: Build a reentrant parser.Kenneth Graunke
2010-06-21glcpp: Add support for lexing from a string.Kenneth Graunke
The standalone binary still reads from stdin, however.
2010-06-21glcpp: Output to a buffer and error log rather than directly printing.Kenneth Graunke
In the standalone case, simply print the buffers when done.
2010-06-21Merge Carl's preprocessor into the glcpp subdirectory.Kenneth Graunke