| Commit | Date | |
|---|---|---|
|
[r3003]
by
plombo
Remove all recursive calls to pp_parser_parse() and introduce persistent subparsers. Now the preprocessor can really return tokens one at a time! |
2011-02-04 01:45:02 | Tree |
|
[r3002]
by
plombo
Fixed detection of normal vs. function-style #defines. Before, directives like this were being misdetected as functions: |
2011-02-03 20:15:10 | Tree |
| 2011-02-03 20:15:07 | Tree | |
|
[r3000]
by
plombo
Fixed a buffer overflow in pp_lexer for tokens longer than 512 characters. Also, this is revision 3000!!!!! Hooray! |
2011-02-03 01:09:12 | Tree |
|
[r2999]
by
plombo
Fixed the parsing of function-style macros with parameters that are not a single identifier, such as 'func(32)' and 'func(foo+bar)'. |
2011-02-03 01:09:07 | Tree |
|
[r2998]
by
plombo
Treat backslash-escaped line breaks as whitespace in pp_lexer. This improves the preprocessor's conformance to the C standard in corner cases. |
2011-02-02 23:07:09 | Tree |
|
[r2997]
by
plombo
MAJOR refactoring of the preprocessor (pp_parser). Tokens are now emitted one at a time by pp_parser_emit_token(). pp_parser_parse() just calls that function until EOF. It's worth noting that they're not quite emitted one at a time, because including and macro expansion still call pp_parser_parse() on the subparser. But this still moves the preprocessor a step closer to eliminating the token buffer. |
2011-02-02 21:19:59 | Tree |
|
[r2996]
by
plombo
Replaced the emit() calls in pp_parser_readline() with use of the overread property. Now pp_parser_parse() is the only preprocessor function that uses emit() directly. |
2011-02-02 18:34:23 | Tree |
| 2011-02-02 02:37:51 | Tree | |
| 2011-02-02 01:56:40 | Tree |