diff options
Diffstat (limited to 'bootstrap/dump.c')
| -rw-r--r-- | bootstrap/dump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap/dump.c b/bootstrap/dump.c index e4f35c9..4b337b7 100644 --- a/bootstrap/dump.c +++ b/bootstrap/dump.c @@ -98,7 +98,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) { + } else if (tok.t == TKident || tok.t == TKmacident) { snprintf(buf, sizeof buf - 1, "`%s'", tok.str); } else if (tok.t == TKgensym) { snprintf(buf, sizeof buf - 1, "`$%s'", tok.str); @@ -336,7 +336,8 @@ dumpdecl(const struct decl *decl, int ws) { case Dtype: pri("<type> %t\n", decl->ty); break; - case Dvar: + case Dlet: + case Dstatic: pri("<var> %t", decl->var.ty); if (decl->var.ini) pri(" = %e", decl->var.ini); |