From eda6bcd42128a3e555c99a68f5b31c7e85518fe5 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 9 Apr 2024 18:23:33 +0300 Subject: improve struct handling --- src/debug.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index d16aab2..3be9d21 100644 --- a/src/debug.c +++ b/src/debug.c @@ -217,6 +217,11 @@ static void _type_str(FILE *fp, struct type *type) return; switch (type->k) { + case TYPE_VOID: { + fprintf(fp, "void"); + break; + } + case TYPE_PTR: fputc('*', fp); _type_str(fp, ptr_base(type)); -- cgit v1.3