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>2025-12-29 00:07:16 +0200
commit90b0d817fedfa5715b195e16da67fa6bdd67638e (patch)
treede5c01884a434ffcc940be2e96474f188c95362c /src/debug.c
parent0e0c41af58a0f4ec5a39ce77822de71e5523fcba (diff)
downloadfwd-90b0d817fedfa5715b195e16da67fa6bdd67638e.tar.gz
fwd-90b0d817fedfa5715b195e16da67fa6bdd67638e.zip
work towards a simple integer vector implementationgnc
+ 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));