From cb83b9e05b4a704cc6127e087917a87af8c97be1 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 15 Dec 2025 12:01:12 +0100 Subject: lexer: use a hashmap to lookup keywords --- c/c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/c.c') 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_); -- cgit v1.2.3