aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 18:23:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 18:23:33 +0300
commiteda6bcd42128a3e555c99a68f5b31c7e85518fe5 (patch)
treea83376bdf90b0e2f30297e5af24210af99f2b36b /src/debug.c
parent451111dc51df69580d04c9965f70531f50e3d509 (diff)
downloadek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.tar.gz
ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.zip
improve struct handling
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c5
1 files changed, 5 insertions, 0 deletions
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));