summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2010-05-28Perform macro by replacing tokens in original list.take-2Carl Worth3-99/+187
2010-05-28Simplify calling conventions of functions under expand_token_list_onto.Carl Worth1-85/+74
2010-05-28Stop interrupting the test suite at the first failure.Carl Worth1-1/+0
2010-05-28Revert "Add support for an object-to-function chain with the parens in the co...Carl Worth1-49/+16
2010-05-27Remove blank lines from output files before comparing.Carl Worth2-3/+5
2010-05-27Implement token pasting of integers.Carl Worth4-17/+33
2010-05-27Add placeholder tokens to support pasting with empty arguments.Carl Worth2-6/+35
2010-05-27Provide support for empty arguments in macro invocations.Carl Worth2-9/+17
2010-05-27Make two list-processing functions do nothing with an empty list.Carl Worth1-1/+4
2010-05-27Avoid treating an expanded comma as an argument separator.Carl Worth2-2/+20
2010-05-26Add support (and test) for an object-to-function chain with the parens in the...Carl Worth2-16/+52
2010-05-26Treat newlines as space when invoking a function-like macro invocation.Carl Worth5-3/+67
2010-05-26All macro lookups should be of type macro_t, not string_list_t.Carl Worth1-4/+4
2010-05-26Implement (and test) support for macro expansion within conditional expressions.Carl Worth3-22/+169
2010-05-26Fix lexing of "defined" as an operator, not an identifier.Carl Worth2-7/+5
2010-05-26Implement #if and friends.Carl Worth4-5/+2
2010-05-26stashCarl Worth2-5/+176
2010-05-26Implement token pasting.Carl Worth1-0/+117
2010-05-26Rename identifier from 'i' to 'node'.Carl Worth1-5/+5
2010-05-26Remove some stale token types.Carl Worth1-3/+0
2010-05-26Prevent unexpanded macros from being expanded again in the future.Carl Worth1-2/+11
2010-05-26README: Document some known limitations.Carl Worth1-0/+12
2010-05-26Fix a typo in a comment.Carl Worth1-1/+1
2010-05-26Expand macro arguments before performing argument substitution.Carl Worth1-4/+5
2010-05-26Change macro expansion to append onto token lists rather than printing directly.Carl Worth1-73/+120
2010-05-26Check active expansions before expanding a function-like macro invocation.Carl Worth1-5/+5
2010-05-26Defer test 26 until much later (to test 55).Carl Worth1-0/+0
2010-05-25Avoid getting extra trailing whitespace from macros.Carl Worth2-2/+29
2010-05-25Remove a bunch of old code and give the static treatment to what's left.Carl Worth2-248/+21
2010-05-25Avoid swallowing initial left parenthesis from nested macro invocation.Carl Worth1-2/+6
2010-05-25Ignore separating whitespace at the beginning of a macro argument.Carl Worth1-9/+11
2010-05-25Implement substitution of function parameters in macro calls.Carl Worth1-8/+57
2010-05-25Collapse multiple spaces in input down to a single space.Carl Worth3-6/+7
2010-05-25Add a test #0 to ensure that we don't do any inadvertent token pasting.Carl Worth1-0/+1
2010-05-25Pass through literal space values from replacement lists.Carl Worth3-71/+25
2010-05-25Implement simplified substitution for function-like macro invocation.Carl Worth3-21/+168
2010-05-25Implement #undef.Carl Worth1-1/+11
2010-05-25Implement expansion of object-like macros.Carl Worth3-22/+112
2010-05-25Make the lexer pass whitespace through (as OTHER tokens) for text lines.Carl Worth3-17/+59
2010-05-25Store parsed tokens as token list and print all text lines.Carl Worth3-64/+195
2010-05-25Delete some trailing whitespace.Carl Worth1-4/+4
2010-05-25Add xtalloc_reference.Carl Worth2-0/+21
2010-05-25Starting over with the C99 grammar for the preprocessor.Carl Worth3-505/+98
2010-05-24Add test for '/', '<<', and '>>' in #if expressions.Carl Worth1-0/+16
2010-05-24Add test of bitwise operators and octal/hexadecimal literals.Carl Worth1-0/+20
2010-05-24Add support for octal and hexadecimal integer literals.Carl Worth1-3/+16
2010-05-24Switch to intmax_t (rather than int) for #if expressionsCarl Worth2-1/+5
2010-05-24Add the '~' operator to the lexer.Carl Worth1-1/+1
2010-05-24Implement all operators specified for GLSL #if expressions (with tests).Carl Worth5-7/+195
2010-05-20Implement #if, #else, #elif, and #endif with tests.Carl Worth13-4/+221