aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-15 12:01:12 +0100
committerlemon <lsof@mailbox.org>2025-12-15 17:16:41 +0100
commitcb83b9e05b4a704cc6127e087917a87af8c97be1 (patch)
treef5ebfc1bb83fa943afa502cee723c6935521cd4e /c/c.c
parent00f38f0fa0a5eb5414a43ded779bd4df3d9aa11a (diff)
lexer: use a hashmap to lookup keywords
Diffstat (limited to 'c/c.c')
-rw-r--r--c/c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/c.c b/c/c.c
index d7ef539..c8a7eea 100644
--- a/c/c.c
+++ b/c/c.c
@@ -44,7 +44,7 @@ lexc(struct comp *cm, struct token *tk)
}
vfree(&rest);
}
- if (in_range(t, TKWBEGIN_, TKWEND_) && (tk = tk ? tk : tk_)->extwarn) {
+ if (ccopt.pedant && in_range(t, TKWBEGIN_, TKWEND_) && (tk = tk ? tk : tk_)->extwarn) {
static struct bitset already[BSSIZE(TKWEND_-TKWBEGIN_+1)];
if (!bstest(already, t-TKWBEGIN_)) {
bsset(already, t-TKWBEGIN_);