summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/types.h b/types.h
index ed5f75f..8d68ab7 100644
--- a/types.h
+++ b/types.h
@@ -248,12 +248,13 @@ typedef enum {
DIRECT_ERROR,
DIRECT_WARN,
DIRECT_INFO,
+ DIRECT_NO_WARN,
DIRECT_COUNT
} Directive;
static const char *directives[DIRECT_COUNT] = {
"C", "sizeof", "alignof", "export", "foreign", "builtin", "include", "force", "if", "error", "warn",
- "info"
+ "info", "no_warn"
};
typedef enum {
@@ -389,6 +390,7 @@ typedef struct {
const char *filename;
char *contents;
Token *tokens;
+ U32 *no_warn_lines; /* in sorted order; right now we do a binary search */
} File;
typedef struct Location {