118 Commit (a65cf7b1d29e98ef3bf31051df8a06cb394d131f)
 

Autore SHA1 Messaggio Data
  Carl Worth a65cf7b1d2 Make two list-processing functions do nothing with an empty list. 15 anni fa
  Carl Worth dd7490093d Avoid treating an expanded comma as an argument separator. 15 anni fa
  Carl Worth 7db2402a80 Add support (and test) for an object-to-function chain with the parens in the content. 15 anni fa
  Carl Worth 95951ea7bb Treat newlines as space when invoking a function-like macro invocation. 15 anni fa
  Carl Worth 0324cad796 All macro lookups should be of type macro_t, not string_list_t. 15 anni fa
  Carl Worth 8e82fcb070 Implement (and test) support for macro expansion within conditional expressions. 15 anni fa
  Carl Worth 16c1e980e2 Fix lexing of "defined" as an operator, not an identifier. 15 anni fa
  Carl Worth f6914fd37b Implement #if and friends. 15 anni fa
  Carl Worth 8fed1cddae stash 15 anni fa
  Carl Worth ad0dee6bb0 Implement token pasting. 15 anni fa
  Carl Worth ce540f2571 Rename identifier from 'i' to 'node'. 15 anni fa
  Carl Worth 63909fc196 Remove some stale token types. 15 anni fa
  Carl Worth ec4ada01c0 Prevent unexpanded macros from being expanded again in the future. 15 anni fa
  Carl Worth c9dcc08d45 README: Document some known limitations. 15 anni fa
  Carl Worth b1ae61a2ee Fix a typo in a comment. 15 anni fa
  Carl Worth d5cd40343f Expand macro arguments before performing argument substitution. 15 anni fa
  Carl Worth 0197e9b64f Change macro expansion to append onto token lists rather than printing directly. 15 anni fa
  Carl Worth c0607d573e Check active expansions before expanding a function-like macro invocation. 15 anni fa
  Carl Worth 039739b2da Defer test 26 until much later (to test 55). 15 anni fa
  Carl Worth 10ae438399 Avoid getting extra trailing whitespace from macros. 15 anni fa
  Carl Worth 5aa7ea0809 Remove a bunch of old code and give the static treatment to what's left. 15 anni fa
  Carl Worth 652fa272ea Avoid swallowing initial left parenthesis from nested macro invocation. 15 anni fa
  Carl Worth c7581c2e6e Ignore separating whitespace at the beginning of a macro argument. 15 anni fa
  Carl Worth 9ce18cf983 Implement substitution of function parameters in macro calls. 15 anni fa
  Carl Worth e9397867dd Collapse multiple spaces in input down to a single space. 15 anni fa
  Carl Worth f8ec4e0be8 Add a test #0 to ensure that we don't do any inadvertent token pasting. 15 anni fa
  Carl Worth f34a0009dd Pass through literal space values from replacement lists. 15 anni fa
  Carl Worth b1854fdfb6 Implement simplified substitution for function-like macro invocation. 15 anni fa
  Carl Worth e6fb7827c9 Implement #undef. 15 anni fa
  Carl Worth ae6517f4a8 Implement expansion of object-like macros. 15 anni fa
  Carl Worth 9fb8b7a495 Make the lexer pass whitespace through (as OTHER tokens) for text lines. 15 anni fa
  Carl Worth 808401fd79 Store parsed tokens as token list and print all text lines. 15 anni fa
  Carl Worth 80dc60b9c3 Delete some trailing whitespace. 15 anni fa
  Carl Worth 9bb796f33a Add xtalloc_reference. 15 anni fa
  Carl Worth 3ff8167084 Starting over with the C99 grammar for the preprocessor. 15 anni fa
  Carl Worth 00f1ec421e Add test for '/', '<<', and '>>' in #if expressions. 15 anni fa
  Carl Worth bb9315f804 Add test of bitwise operators and octal/hexadecimal literals. 15 anni fa
  Carl Worth 03f6d5d2d4 Add support for octal and hexadecimal integer literals. 15 anni fa
  Carl Worth 35419095f8 Switch to intmax_t (rather than int) for #if expressions 15 anni fa
  Carl Worth 89b933a243 Add the '~' operator to the lexer. 15 anni fa
  Carl Worth bcbd587b0f Implement all operators specified for GLSL #if expressions (with tests). 15 anni fa
  Carl Worth b20d33c5c6 Implement #if, #else, #elif, and #endif with tests. 15 anni fa
  Carl Worth d8327e575d Implement (and add test) for token pasting. 15 anni fa
  Carl Worth c10a51ba13 Pre-expand macro arguments at time of invocation. 15 anni fa
  Carl Worth b894583fd0 Add xtalloc_asprintf 15 anni fa
  Carl Worth 876e510bda Finish cleaning up whitespace differences. 15 anni fa
  Carl Worth 5a6b9a27fd Avoid printing a space at the beginning of lines in the output. 15 anni fa
  Carl Worth 005b32061f Fix bug of consuming excess whitespace. 15 anni fa
  Carl Worth ff13cfed81 Remove unused function _print_string_list 15 anni fa
  Carl Worth 323421db65 Remove "unnecessary" whitespace from some tests. 15 anni fa