diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-09 18:23:33 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-09 18:23:33 +0300 |
| commit | eda6bcd42128a3e555c99a68f5b31c7e85518fe5 (patch) | |
| tree | a83376bdf90b0e2f30297e5af24210af99f2b36b /src/debug.c | |
| parent | 451111dc51df69580d04c9965f70531f50e3d509 (diff) | |
| download | ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.tar.gz ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.zip | |
improve struct handling
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 5 |
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)); |
