From 497289eb02927c75f6e77bba052bec2a4589c227 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 20 Dec 2025 22:00:28 +0100 Subject: lexer: note source of #include when error occurs in #included file --- c/lex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c/lex.h') 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]; -- cgit v1.2.3