diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-01 14:35:51 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-01 14:35:51 +0300 |
| commit | 0132be5b71f3fe161b2fcda201c945d30bd8d1a5 (patch) | |
| tree | c31e766848311da0feccd360ca3659dc9e46a38a /src/debug.c | |
| parent | ad18c24e7223b1c0d48a20ba9b618c4eaf1e3a84 (diff) | |
| download | ek-0132be5b71f3fe161b2fcda201c945d30bd8d1a5.tar.gz ek-0132be5b71f3fe161b2fcda201c945d30bd8d1a5.zip | |
improve struct and union support in resolve
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index 6aa4283..b929876 100644 --- a/src/debug.c +++ b/src/debug.c @@ -198,10 +198,12 @@ static void _type_str(FILE *fp, struct ast_node *type) struct ast_node *impls = type->_type.struc.impls; if (impls) { - fprintf(fp, " ("); + fprintf(fp, "("); while (impls) { _type_str(fp, impls); impls = impls->next; + if (impls) + fprintf(fp, ", "); } fprintf(fp, ")"); } |
