Commit Graph

220 Commits

Author SHA1 Message Date
5bc7969acd Recurse with the values already defined 2009-08-30 02:23:50 +00:00
a2384d61fd Including new files interrupted the current one and leaked memory 2009-08-30 01:32:42 +00:00
95be2c81be Code cleanup 2009-08-01 18:25:31 +00:00
7519bff6ec No longer allow the #data directive 2009-08-01 18:24:29 +00:00
12c82d3c3c Code cleanup 2009-08-01 17:59:44 +00:00
01a4c6be8c Handling leading "!" in #if 2009-08-01 12:17:04 +00:00
33269a5353 Also partially implemented #elif 2009-08-01 02:40:03 +00:00
153753d0bd Slightly more complete #if 2009-08-01 02:21:15 +00:00
59d80dffd6 Implemented a subset of #if 2009-08-01 02:11:44 +00:00
ec4a31ea90 Code cleanup 2009-08-01 01:54:26 +00:00
397c08cebf Process #include only if it's in scope 2009-08-01 01:44:27 +00:00
441ef54e5d Code cleanup 2009-08-01 01:15:51 +00:00
42b9b9f630 Code cleanup 2009-07-31 02:06:17 +00:00
52b47e825d Implemented CPP_OPTION_IGNORE_META (does not ignore #include yet though) 2009-07-31 01:58:50 +00:00
bbb5e85254 More resilient way to create a Cpp instance 2009-07-31 01:45:33 +00:00
850832c21d Changed the way Cpp instances are created 2009-07-31 01:38:05 +00:00
c140c68b05 Changed the way a Cpp instance is created 2009-07-31 01:35:52 +00:00
cceafc1630 Added a hack to no longer substitute in a loop 2009-07-29 15:06:10 +00:00
d1048edfc7 Removed cpp_is_defined() from the API 2009-07-29 14:56:33 +00:00
413d109000 Implemented simple word substitution 2009-07-29 14:49:23 +00:00
d8a1e43a44 Added cpp_define_get() to the API (may obsolete cpp_is_defined()) 2009-07-29 14:43:29 +00:00
2478e42168 Compile with -pedantic 2009-07-29 14:41:27 +00:00
6e9e8369b5 No longer need <limits.h> 2009-07-28 15:57:23 +00:00
4a46807f3f Also add the current directory in the search path list 2009-07-28 15:54:29 +00:00
7c566c273b Code cleanup 2009-07-28 15:43:07 +00:00
19e45daf89 Fixed crash when opening a file that doesn't exist 2009-07-28 15:41:06 +00:00
77556bc250 Fixed errors and warnings appearing before the problematic line 2009-07-28 15:40:29 +00:00
b149b38cf9 Better handling of directives 2009-07-28 12:25:53 +00:00
5ec29c6031 Added a CppParser class 2009-07-28 11:22:32 +00:00
021ddc8633 Handle comments within directives 2009-07-28 01:04:09 +00:00
de05811a6f cpp.c and scanner.c also depend on common.h 2009-07-27 23:08:22 +00:00
b75baf4903 The usage screen now fits in 80 columns 2009-07-26 21:57:23 +00:00
4a8213ebd7 Initial release 2009-06-17 11:29:50 +00:00
dd11232c1b Re-generated Makefiles 2009-06-16 23:56:07 +00:00
0d3d111df0 Fixed archive generation 2009-03-28 01:45:53 +00:00
6caad7455e Re-generated Makefiles 2009-01-11 21:46:49 +00:00
280d15656a GPLv3'ing 2008-10-15 10:43:33 +00:00
d07d95edec Re-generated Makefiles 2008-09-26 21:20:27 +00:00
20ae778cbc Linking against local libcpp.so by default 2008-06-22 09:45:43 +00:00
77a47f7dff Moved -Wall in CFLAGS (not supported in c99) 2008-06-21 23:43:55 +00:00
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