aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-17 18:00:52 +0200
committerlemon <lsof@mailbox.org>2025-10-17 18:30:36 +0200
commitffc76d36f985817a86ff73822e0ed268226737dd (patch)
tree45b8c70a8e07e2abb3eef9f4e0a50d672b7e40bb /lex.h
parented58941c2c5dc62d7c5703d4be205626f9c3389b (diff)
add -E preprocessing option
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h2
1 files changed, 2 insertions, 0 deletions
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: */