aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-12-29 00:07:16 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2026-01-06 17:19:52 +0200
commitc7b41b47d038fd4973da05224b7aa29efaae1784 (patch)
treead439ff996aa5121bced46bdb7e42eb419702be0 /src/debug.c
parentd501b2c9ebab6f5b90c808ea0e5fde912818707d (diff)
downloadfwd-c7b41b47d038fd4973da05224b7aa29efaae1784.tar.gz
fwd-c7b41b47d038fd4973da05224b7aa29efaae1784.zip
work towards a simple integer vector implementation
+ Hopefully shows that useful programs can be implemented with the rules present + Still missing at least external functions with non-void returns
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/debug.c b/src/debug.c
index 8ef4293..538fdfe 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -222,6 +222,10 @@ static void _type_str(FILE *f, struct type *type)
fprintf(f, "u64");
break;
+ case TYPE_BOOL:
+ fprintf(f, "bool");
+ break;
+
case TYPE_VOID:
fprintf(f, "void");
break;
@@ -230,12 +234,6 @@ static void _type_str(FILE *f, struct type *type)
fprintf(f, "nil");
break;
- case TYPE_ARR:
- /** @todo length? */
- fprintf(f, "[]");
- _type_list_str(f, tarr_base(type));
- break;
-
case TYPE_PTR:
fprintf(f, "*");
_type_list_str(f, tptr_base(type));