summaryrefslogtreecommitdiff
path: root/glcpp/pp.c
AgeCommit message (Collapse)Author
2010-06-23glcpp: Support line continuations within preprocessor directives.Kenneth Graunke
Fixes CorrectPreprocess5.frag.
2010-06-21glcpp: Print to the main compiler's infolog, not stdout.Kenneth Graunke
2010-06-21Use yy_scan_string and stop caring about shader->SourceLen.Kenneth Graunke
We had to call strlen on the preprocessed source, which seemed a bit pointless; also, we updated shader->SourceLen but not shader->Source, which was even more confusing. Just leave both untouched.
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: Introduce new glcpp_error function.Kenneth Graunke
2010-06-21glcpp: Print errors on stdout instead of stderr (non-standalone version).Kenneth Graunke
Otherwise, piglit marks tests as "warn" when the shader was (correctly) failing.
2010-06-21Make the main compiler call the preprocessor.Kenneth Graunke
By using a single function, the main compiler doesn't need to include glcpp.h, which currently has a lot of details about the preprocessor internals. In particular, this prevents the two yacc grammars from seeing each other, which would be rather messy to sort out.