Mercurial > hg > index.cgi
diff lwcc/cpp.h @ 298:6112c67728ba ccdev
Add stringification and token concatenation
Add support for # and ## in macro expansion by the preprocessor
(stringification and token concatenation). Totally untested.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sat, 14 Sep 2013 22:42:53 -0600 |
parents | 83fcc1ed6ad6 |
children | 8d6c47395653 |
line wrap: on
line diff
--- a/lwcc/cpp.h Sat Sep 14 21:27:03 2013 -0600 +++ b/lwcc/cpp.h Sat Sep 14 22:42:53 2013 -0600 @@ -63,7 +63,8 @@ struct symtab_e *sh; // the preprocessor's symbol table struct token *sourcelist; // for expanding a list of tokens struct expand_e *expand_list; // record of which macros are currently being expanded - + char *lexstr; // for lexing a string (token pasting) + int lexstrloc; // ditto }; extern struct preproc_info *preproc_init(const char *);