Commit Graph

80 Commits

Author SHA1 Message Date
87527c878e cpp_get_filename() now returns the top-level filename 2008-06-21 22:26:27 +00:00
e59b767073 Report errors upon malformed include directives 2008-06-21 22:25:39 +00:00
a71a1b3a45 Fixed potential race condition when parsing unusual characters 2008-06-21 22:01:50 +00:00
1d5df73f22 Checking for errors from cpp_path_add() in cpp_new(), Debugging cleanup 2008-06-21 21:56:49 +00:00
a6c00b0502 Re-generated Makefiles 2008-06-04 20:29:51 +00:00
a11928106a Separated parts of cpp.c into common.h and scanner.c 2008-06-04 16:20:14 +00:00
4c8dc326b7 Sub-scopes are no longer taken when a parent should not be 2008-06-04 15:37:48 +00:00
c85694ebfb #defines are no longer processed when out of scope 2008-06-04 15:01:54 +00:00
e270d2a832 Optimized path and define handling, Fixed inclusion scopes 2008-06-01 00:55:00 +00:00
2ccff29aad cpp depends on libcpp.so 2008-06-01 00:51:56 +00:00
3d5ad4f48d Fixed some memory leaks 2008-05-27 01:24:14 +00:00
cb7f99b4c9 cpp_scope_pop() now handles platforms where realloc(a, 0) returns NULL 2008-05-27 01:24:13 +00:00
184130ccf0 Fixed four off by ones (undefined string termination) 2008-05-27 01:24:12 +00:00
e6cf667584 Added workaround to parse macro definitions while they are still not implemented 2008-05-27 01:24:11 +00:00
187a04704d Added a filter for comments 2008-05-13 13:18:18 +00:00
0c17a6cf60 Conforming to the latest configure 2008-05-04 01:52:46 +00:00
b91f36d8bb Added a flag to determine white-space filtering 2008-05-04 01:52:20 +00:00
bebf7cac1a Re-generated Makefile 2008-05-04 01:51:01 +00:00
0a78bcb0d4 Added a filtering flag to determine whether to skip whitespaces 2008-05-03 23:30:06 +00:00
eaf6445c46 Implemented #ifdef and #ifndef 2008-04-24 16:55:58 +00:00
8df40f9cf1 Initial release 2008-04-16 14:45:01 +00:00
0208f627d4 Now tolerating badly quoted content 2008-04-16 14:33:19 +00:00
a4a6f234fd strndup() is not portable 2008-04-15 10:57:01 +00:00
20d1884da6 Re-removing cpp.h 2008-04-15 10:54:47 +00:00
b0c4dd5198 Re-removing 2008-04-15 10:54:29 +00:00
561e24067e Linking dynamically against libSystem 2008-04-12 22:19:00 +00:00
ee982e4f5a Recognizing defines 2008-04-11 10:32:56 +00:00
5260a6ceb8 Removed two more duplicates 2008-03-11 16:34:47 +00:00
eaff3ec685 Two operators were duplicated 2008-03-11 16:21:56 +00:00
a8b1e1b270 Added operator "/=" 2008-03-06 17:42:09 +00:00
77fcd257de Fixed file inclusion 2008-03-04 16:55:11 +00:00
0fbc2b9f62 Fixed confusion between ~ and * 2008-03-03 16:26:18 +00:00
8364a0cf2f Added more missing operators 2008-03-03 16:24:04 +00:00
9c6ae26a9a Added the #line directive 2008-03-03 16:01:30 +00:00
4342ab2ec8 Added another batch of operators (not sure if some belong here) 2008-03-02 16:30:49 +00:00
25440e48fb Added another batch of operators 2008-03-02 16:25:57 +00:00
901155df67 Added the ? operator 2008-03-02 16:17:08 +00:00
03113b8cce Added a few more tests 2008-03-02 13:11:23 +00:00
1eaa00306c Better handling of invalid directives 2008-03-02 13:03:35 +00:00
811ac4ba8a Simplified handling of #error 2008-03-02 12:56:16 +00:00
c64bbfda5c Working on handling of -U 2008-03-02 01:51:36 +00:00
8fbb692fd9 Working on substitution directives 2008-03-02 01:33:45 +00:00
cd86a3c031 Recognizing the #elif and #undef directives 2008-03-02 00:59:56 +00:00
50237ec133 Added the "else" directive 2008-02-29 17:33:40 +00:00
b4b7d14734 Code cleanup 2008-02-29 16:30:40 +00:00
be9d6014a4 Code cleanup 2008-02-29 14:24:59 +00:00
dbb50cac28 Code cleanup 2008-02-29 12:46:09 +00:00
7150d87841 Handling include directories (not system yet) 2008-02-29 12:44:45 +00:00
f33c0e5571 More correct file inclusion 2008-02-29 11:37:58 +00:00
06b3839156 Handling file inclusion probably correctly now 2008-02-28 00:09:07 +00:00