From 90b0d817fedfa5715b195e16da67fa6bdd67638e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 29 Dec 2025 00:07:16 +0200 Subject: 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 --- src/debug.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/debug.c') 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)); -- cgit v1.2.3