Mercurial > hg > index.cgi
diff lwcc/cpp.h @ 306:b08787e5b9f3 ccdev
Add include search paths and command line macro definitions
Added command line macro definitions. Also implemented include paths. There
is no default include path; that will be supplied by the driver program.
author | William Astle <lost@l-w.ca> |
---|---|
date | Wed, 18 Sep 2013 20:41:41 -0600 |
parents | d85d173ba120 |
children | 670ea8f90212 |
line wrap: on
line diff
--- a/lwcc/cpp.h Wed Sep 18 19:17:52 2013 -0600 +++ b/lwcc/cpp.h Wed Sep 18 20:41:41 2013 -0600 @@ -24,6 +24,8 @@ #include <stdio.h> +#include <lw_stringlist.h> + //#include "symbol.h" #include "token.h" @@ -68,6 +70,8 @@ struct preproc_info *n; // next in file stack struct preproc_info *filestack; // stack of saved files during include struct strpool *strpool; + lw_stringlist_t quotelist; + lw_stringlist_t inclist; }; extern struct preproc_info *preproc_init(const char *); @@ -79,6 +83,8 @@ extern void preproc_throw_error(struct preproc_info *, const char *, ...); extern void preproc_throw_warning(struct preproc_info *, const char *, ...); extern void preproc_unget_token(struct preproc_info *, struct token *); +extern void preproc_add_include(struct preproc_info *, char *, int); +extern void preproc_add_macro(struct preproc_info *, char *); extern struct token *preproc_next(struct preproc_info *); #endif // cpp_h_seen___