From ffc76d36f985817a86ff73822e0ed268226737dd Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 17 Oct 2025 18:00:52 +0200 Subject: add -E preprocessing option --- lex.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lex.h') diff --git a/lex.h b/lex.h index 80898ce..6adbad9 100644 --- a/lex.h +++ b/lex.h @@ -52,6 +52,7 @@ struct token { short t; /* toktag */ bool litlit; uchar wide : 2; /* for CHRLIT & STRLIT; 1 -> 16bit, 2 -> 32bit */ + uchar wideuni : 1; /* ditto, 0 -> 'L', 1 -> 'u'/'U' (C11) */ union { uint len; struct { ushort macidx, argidx; }; @@ -102,6 +103,7 @@ int lex(struct lexer *, struct token *); int lexpeek(struct lexer *, struct token *); enum typetag parsenumlit(uvlong *, double *, const struct token *, bool ispp); const char *initlexer(struct lexer *, const struct span *span, const char *file); +void lexerdump(struct lexer *, struct wbuf *out); void lexerfreetemps(struct lexer *); /* vim:set ts=3 sw=3 expandtab: */ -- cgit v1.2.3