comparison lwcc/cpp.h @ 300:8d6c47395653 ccdev

Implemented #include and #line Theoretically, directives are now implemented.
author William Astle <lost@l-w.ca>
date Sun, 15 Sep 2013 13:49:00 -0600
parents 6112c67728ba
children d85d173ba120
comparison
equal deleted inserted replaced
299:856caf91ffaa 300:8d6c47395653
63 struct symtab_e *sh; // the preprocessor's symbol table 63 struct symtab_e *sh; // the preprocessor's symbol table
64 struct token *sourcelist; // for expanding a list of tokens 64 struct token *sourcelist; // for expanding a list of tokens
65 struct expand_e *expand_list; // record of which macros are currently being expanded 65 struct expand_e *expand_list; // record of which macros are currently being expanded
66 char *lexstr; // for lexing a string (token pasting) 66 char *lexstr; // for lexing a string (token pasting)
67 int lexstrloc; // ditto 67 int lexstrloc; // ditto
68 struct preproc_info *n; // next in file stack
69 struct preproc_info *filestack; // stack of saved files during include
68 }; 70 };
69 71
70 extern struct preproc_info *preproc_init(const char *); 72 extern struct preproc_info *preproc_init(const char *);
71 extern struct token *preproc_next_token(struct preproc_info *); 73 extern struct token *preproc_next_token(struct preproc_info *);
72 extern struct token *preproc_next_processed_token(struct preproc_info *); 74 extern struct token *preproc_next_processed_token(struct preproc_info *);