diff options
| author | 2026-04-20 16:39:48 +0200 | |
|---|---|---|
| committer | 2026-04-20 16:39:55 +0200 | |
| commit | 94aefdc760b1a7f77fe3a64d2ebf8c13645a49d0 (patch) | |
| tree | 17f35417a73c5db054fbe619a7191696ef26e8e6 /src/c.c | |
| parent | f3fee781e966afaee558641662021cf5e4559616 (diff) | |
frontend: embed <limits.h>, fix asm names
Diffstat (limited to 'src/c.c')
| -rw-r--r-- | src/c.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2955,10 +2955,10 @@ pdecl(DeclState *st, CComp *cm) { if (st->kind == DTOPLEVEL || st->kind == DFUNCVAR) { while (attrspec(cm, &st->attr)) ; if (match(cm, NULL, TKW__asm__) && expect(cm, '(', NULL)) { - peek(cm, &tk); - if (expect(cm, TKSTRLIT, "asm symbol name")) { + if (peek(cm, NULL) == TKSTRLIT) { + lex(cm, &tk); decl.sym = intern_(tk.s, tk.len); - } + } else expect(cm, TKSTRLIT, "asm symbol name"); expect(cm, ')', NULL); } while (attrspec(cm, &st->attr)) ; |