From 0cb0dd0d23386a6a6ff4e981bb633b9e34a87c65 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 9 Oct 2025 20:29:49 +0200 Subject: update todo.txt --- test/test2.c | 9 +++++++-- todo.txt | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/test/test2.c b/test/test2.c index 26def98..756b0d3 100644 --- a/test/test2.c +++ b/test/test2.c @@ -14,6 +14,11 @@ v2d add(v2d a, v2d b) return a; } +v2d addx(v2d a, v2d b) +{ + return (v2d){a.x+b.x, a.y+b.y}; +} + short s(int a, int b) { extern h(); h(a +a * a); @@ -25,7 +30,7 @@ int i() { return s(1,2); } -double v2v2() { +v2d v2v2() { v2d x = add((v2d){1,2}, (v2d){3,4}); - return x.x+x.y; + return x; } diff --git a/todo.txt b/todo.txt index 98f45f2..b36a34a 100644 --- a/todo.txt +++ b/todo.txt @@ -1,7 +1,7 @@ Things to finish before moving onto compiler optimizations, C extensions, other nice features - backend: finish regalloc -- frontend: finish C impl: initializers, preprocessor (#include, etc), switch +- frontend: finish C impl: preprocessor (#include, etc) - frontend: optimize lexer at some point add another backend like arm64 to make sure the non target specific stuff is generic enough.. -- cgit v1.2.3