aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cc.h b/cc.h
index d938ade..85f739a 100644
--- a/cc.h
+++ b/cc.h
@@ -121,6 +121,8 @@ struct location {
struct token {
enum tokenkind kind;
+ /* whether or not the token is ineligible for expansion */
+ _Bool hide;
/* whether or not the token was preceeded by a space */
_Bool space;
struct location loc;
@@ -384,6 +386,13 @@ void scan(struct token *);
/* preprocessor */
+enum ppflags {
+ /* preserve newlines in preprocessor output */
+ PPNEWLINE = 1 << 0,
+};
+
+extern enum ppflags ppflags;
+
void ppinit(void);
void next(void);