From 1a56a881bc2c37614cfd074e7b986211c6d04809 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 14 Aug 2024 19:06:16 +0300 Subject: print out aliases as well --- src/debug.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index 2db23a9..e90f1ee 100644 --- a/src/debug.c +++ b/src/debug.c @@ -261,6 +261,9 @@ static void _type_str(FILE *fp, struct type *type) if (!type) return; + if (type->a) + fprintf(fp, "[%s = ", alias_id(type->a)); + switch (type->k) { case TYPE_VOID: { fprintf(fp, "void"); @@ -320,6 +323,9 @@ static void _type_str(FILE *fp, struct type *type) else fprintf(fp, "UNKNOWN TYPE"); } + + if (type->a) + fputc(']', fp); } char *type_str(struct type *t) -- cgit v1.3