Mercurial > hg > index.cgi
comparison lwcc/cpp.h @ 308:670ea8f90212 ccdev
Converted preproc logic to library and moved some utility stuff to lwlib
The strbuf and strpool stuff is generally useful so move it to lwlib where
other such things live.
Also, package the preprocessor logic into a library for easy use in multiple
places.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sat, 21 Sep 2013 13:33:54 -0600 |
parents | b08787e5b9f3 |
children |
comparison
equal
deleted
inserted
replaced
307:9e342c4e4b66 | 308:670ea8f90212 |
---|---|
67 struct expand_e *expand_list; // record of which macros are currently being expanded | 67 struct expand_e *expand_list; // record of which macros are currently being expanded |
68 char *lexstr; // for lexing a string (token pasting) | 68 char *lexstr; // for lexing a string (token pasting) |
69 int lexstrloc; // ditto | 69 int lexstrloc; // ditto |
70 struct preproc_info *n; // next in file stack | 70 struct preproc_info *n; // next in file stack |
71 struct preproc_info *filestack; // stack of saved files during include | 71 struct preproc_info *filestack; // stack of saved files during include |
72 struct strpool *strpool; | 72 struct lw_strpool *strpool; |
73 lw_stringlist_t quotelist; | 73 lw_stringlist_t quotelist; |
74 lw_stringlist_t inclist; | 74 lw_stringlist_t inclist; |
75 }; | 75 }; |
76 | 76 |
77 extern struct preproc_info *preproc_init(const char *); | 77 extern struct preproc_info *preproc_init(const char *); |