Commit Graph

76 Commits

Author SHA1 Message Date
6ae7aae1e0 Update the copyright notice 2015-09-09 01:55:57 +02:00
0837e19285 Extend the API to offer parsing strings 2015-09-09 01:54:47 +02:00
09a9e2f079 Avoid a warning when compiling in debugging mode 2014-07-29 00:35:06 +02:00
b66080545b Updated the copyright line 2014-07-29 00:34:04 +02:00
98a0859de7 Keep track of system includes 2014-07-29 00:33:25 +02:00
489da49303 Renamed (and moved) the public header file for consistency 2012-11-30 23:29:37 +01:00
ccf98853e1 Switched cpp's license to the LGPL (for the library part) 2012-11-04 14:47:07 +01:00
f4c77d894b Actually applied GPL version 3 2010-12-08 20:52:24 +00:00
90b762131c Code cleanup 2010-12-04 21:25:34 +00:00
5bc7969acd Recurse with the values already defined 2009-08-30 02:23:50 +00:00
850832c21d Changed the way Cpp instances are created 2009-07-31 01:38:05 +00:00
d1048edfc7 Removed cpp_is_defined() from the API 2009-07-29 14:56:33 +00:00
d8a1e43a44 Added cpp_define_get() to the API (may obsolete cpp_is_defined()) 2009-07-29 14:43:29 +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
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
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
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
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
b91f36d8bb Added a flag to determine white-space filtering 2008-05-04 01:52:20 +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
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
ee982e4f5a Recognizing defines 2008-04-11 10:32:56 +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
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
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