summaryrefslogtreecommitdiff
path: root/glcpp
AgeCommit message (Expand)AuthorFilesLines
2010-06-23preprocessor: Initialize a potentially uninitialized variable.Carl Worth1-1/+1
2010-06-23preprocessor: Remove dead code _token_list_lengthCarl Worth1-18/+0
2010-06-23preprocessor: Remove dead code _string_list_append_listCarl Worth1-15/+0
2010-06-23glcpp: Support line continuations within preprocessor directives.Kenneth Graunke1-0/+79
2010-06-23glcpp: Make standalone binary use preprocess().Kenneth Graunke2-9/+56
2010-06-23glcpp: Fix "dangerous trailing context" warning.Kenneth Graunke1-1/+1
2010-06-23glcpp: Recognize plain "//" as a comment.Kenneth Graunke1-1/+1
2010-06-22Add missing build products to gitignoreIan Romanick1-0/+4
2010-06-21glcpp: Initialize error state.Kenneth Graunke1-0/+1
2010-06-21glcpp: Accept #elif without an expression if the expression doesn't matter.Kenneth Graunke1-0/+11
2010-06-21glcpp: Print to the main compiler's infolog, not stdout.Kenneth Graunke1-2/+2
2010-06-21Use yy_scan_string and stop caring about shader->SourceLen.Kenneth Graunke1-2/+1
2010-06-21glcpp: Rework handling of "defined" operator.Kenneth Graunke1-45/+33
2010-06-21glcpp/tests: Add a test for #if defined (identifier)Kenneth Graunke2-0/+35
2010-06-21glcpp: Ignore junk tokens at end of #ifdef/#ifndef (with warning)Kenneth Graunke1-2/+8
2010-06-21glcpp: Add glcpp_warning for printing warnings to the info log.Kenneth Graunke2-0/+21
2010-06-21glcpp: Add boolean 'error' flag.Kenneth Graunke2-1/+3
2010-06-21glcpp: Rename "errors" to "info_log."Kenneth Graunke4-19/+21
2010-06-21glcpp: Don't include newlines as part of #version-passthrough.Kenneth Graunke1-1/+1
2010-06-21glcpp/tests: Add a test for #version followed by #define.Kenneth Graunke2-0/+5
2010-06-21glcpp: Fix line and column numbering.Kenneth Graunke1-1/+6
2010-06-21glcpp: Remove calls to exit().Kenneth Graunke1-6/+6
2010-06-21glcpp: Add line locations to "Unterminated #if" error message.Kenneth Graunke2-6/+10
2010-06-21glcpp: Add line locations to various mismatched #if error messages.Kenneth Graunke1-11/+11
2010-06-21glcpp: Add line locations to "reserved name" error messages.Kenneth Graunke1-8/+13
2010-06-21glcpp: Print locations in error messages where possible.Kenneth Graunke1-7/+7
2010-06-21glcpp: Introduce new glcpp_error function.Kenneth Graunke3-2/+18
2010-06-21glcpp: Set locations on tokens.Kenneth Graunke2-9/+25
2010-06-21glcpp: Set line locations in the lexer.Kenneth Graunke1-4/+21
2010-06-21glcpp: Add plumbing to support line locations.Kenneth Graunke3-9/+21
2010-06-21glcpp: Add %error-verbose.Kenneth Graunke1-0/+1
2010-06-21glcpp: Actually support #ifdef and #ifndef.Kenneth Graunke1-0/+10
2010-06-21glcpp: Build a reentrant parser.Kenneth Graunke3-13/+15
2010-06-21glcpp: Print errors on stdout instead of stderr (non-standalone version).Kenneth Graunke1-1/+1
2010-06-21glcpp/tests: Add extra newline at the end of expected output.Kenneth Graunke67-0/+67
2010-06-21glcpp: Handle missing newline at EOF.Kenneth Graunke1-0/+9
2010-06-21glcpp: Complain about unrecognized directives.Kenneth Graunke1-1/+3
2010-06-21glcpp: Pass #version, #extension, and #pragma directives through unchanged.Kenneth Graunke1-0/+7
2010-06-21Make the main compiler call the preprocessor.Kenneth Graunke2-0/+45
2010-06-21glcpp: Add support for lexing from a string.Kenneth Graunke2-0/+9
2010-06-21glcpp: Output to a buffer and error log rather than directly printing.Kenneth Graunke3-48/+60
2010-06-21glcpp: Fix a case of == where = probably ought to be.Kenneth Graunke1-1/+1
2010-06-21Add glcpp to the build.Kenneth Graunke2-25/+45
2010-06-21Specify %option prefix="glcpp_" in the source code, not the Makefile.Kenneth Graunke2-1/+2
2010-06-21Merge Carl's preprocessor into the glcpp subdirectory.Kenneth Graunke147-0/+3508