diff options
| author | 2025-10-17 18:00:52 +0200 | |
|---|---|---|
| committer | 2025-10-17 18:30:36 +0200 | |
| commit | ffc76d36f985817a86ff73822e0ed268226737dd (patch) | |
| tree | 45b8c70a8e07e2abb3eef9f4e0a50d672b7e40bb /lex.h | |
| parent | ed58941c2c5dc62d7c5703d4be205626f9c3389b (diff) | |
add -E preprocessing option
Diffstat (limited to 'lex.h')
| -rw-r--r-- | lex.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: */ |