aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/lex.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-20 22:00:28 +0100
committerlemon <lsof@mailbox.org>2025-12-20 22:00:28 +0100
commit497289eb02927c75f6e77bba052bec2a4589c227 (patch)
treee308c60f6d5ce8569eeb3159b45a5bebc1d8dda5 /c/lex.h
parent8341b8fa4ede60ff92127825a0b2e6b29f5e4d83 (diff)
lexer: note source of #include when error occurs in #included file
Diffstat (limited to 'c/lex.h')
-rw-r--r--c/lex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/lex.h b/c/lex.h
index 21519f7..20b1bbd 100644
--- a/c/lex.h
+++ b/c/lex.h
@@ -101,7 +101,8 @@ struct lexer {
bool eof, err;
struct arena **tmparena;
bool firstdirective;
- ushort nppcnd0;
+ short nppcnd0;
+ short inclnerror;
internstr inclguard;
uchar chrbuf[1<<10];
uint chridxbuf[1<<10];