diff options
| author | 2025-12-15 12:01:12 +0100 | |
|---|---|---|
| committer | 2025-12-15 17:16:41 +0100 | |
| commit | cb83b9e05b4a704cc6127e087917a87af8c97be1 (patch) | |
| tree | f5ebfc1bb83fa943afa502cee723c6935521cd4e /c/c.c | |
| parent | 00f38f0fa0a5eb5414a43ded779bd4df3d9aa11a (diff) | |
lexer: use a hashmap to lookup keywords
Diffstat (limited to 'c/c.c')
| -rw-r--r-- | c/c.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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_); |