summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDavid Moc <personal@cdatgoose.org>2026-03-08 15:02:30 +0100
committerDavid Moc <personal@cdatgoose.org>2026-03-08 15:02:30 +0100
commitad035ac5d942c6448a6a0464b995c2868a8378db (patch)
tree9c2c779d544a45b4234a6a3c311aa7b612ea975e /src/main.c
parent0385817bb1301a778bb33f8405a435293b9f8905 (diff)
Gosh.\nFixed bugs in offsetting. Added syscalls. Cleaned up the previous commenting (used to pass the project thu claude to add comments but LLMs are dumb). Removed the LLM made test runner cuz fuck AI.HEADmaster
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0f18359..0e4c9c3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -187,7 +187,10 @@ void print_func(_FN *f, int indent) {
return;
indentf(indent);
- printf("Function(%s) params=[", f->name);
+ /* Print return type */
+ printf("Function(%s) -> [%s", f->name, tybase_name(f->ret_type.base));
+ for (int j = 0; j < f->ret_type.ptr_level; j++) printf("*");
+ printf("] params=[");
for (int i = 0; i < f->pac; i++) {
printf("%s", tybase_name(f->param_types[i].base));
for (int j = 0; j < f->param_types[i].ptr_level; j++)