From 215c18ebc86b116827d3af19ca0779316e1a0e15 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 08:48:21 +0200 Subject: break & continue --- bootstrap/dump.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bootstrap/dump.c') 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); } } -- cgit v1.2.3