diff options
| author | 2022-08-04 07:39:23 +0200 | |
|---|---|---|
| committer | 2022-08-04 07:39:23 +0200 | |
| commit | bb1d4b4a3e51a06fb0530dfc271a97a6cd88cc73 (patch) | |
| tree | f300325814bc30e64f858ee313b8260a14d8df90 /bootstrap/dump.c | |
| parent | 1625c50f0c0e4b1c7ba01a5df5713efaf6dce606 (diff) | |
stuff
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); |