diff options
| author | 2022-08-08 08:48:21 +0200 | |
|---|---|---|
| committer | 2022-08-08 08:50:18 +0200 | |
| commit | 215c18ebc86b116827d3af19ca0779316e1a0e15 (patch) | |
| tree | 472683c87148646856b73c0af09e64768aa550af /bootstrap/dump.c | |
| parent | 8e94bb58ca91b26c0916210a179157b1280489be (diff) | |
break & continue
Diffstat (limited to 'bootstrap/dump.c')
| -rw-r--r-- | bootstrap/dump.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bootstrap/dump.c b/bootstrap/dump.c index 8c34716..157b12f 100644 --- a/bootstrap/dump.c +++ b/bootstrap/dump.c @@ -123,7 +123,7 @@ tok2str(struct tok tok) { if (tok.t == TKintlit) { snprintf(buf, sizeof buf - 1, "`%llu'", (unsigned long long)tok.ilit.i); - } else if (tok.t == TKident || tok.t == TKmacident) { + } else if (tok.t == TKident || tok.t == TKmacident || tok.t == TKlabel) { snprintf(buf, sizeof buf - 1, "`%s'", tok.str); } else if (tok.t == TKgensym) { snprintf(buf, sizeof buf - 1, "`$%s'", tok.str); @@ -385,8 +385,7 @@ dumpstmt(const struct stmt *stmt, int ws) { else epri("%wreturn;\n", ws); break; - case Seuswitch: - break; + default:assert(0); } } @@ -439,7 +438,7 @@ dumpdecl(const struct decl *decl, int ws) { } epri("}\n"); break; - case Dtepl: + case Dtepl: case Dlabel: assert(0); } } |