aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-09 20:29:49 +0200
committerlemon <lsof@mailbox.org>2025-10-09 20:30:02 +0200
commit0cb0dd0d23386a6a6ff4e981bb633b9e34a87c65 (patch)
tree8aec6f43b6126e5d63afcd8a1c054e8821d14416
parentba05bc9089248fc92a2fa12bace04c7f63649b9a (diff)
update todo.txt
-rw-r--r--test/test2.c9
-rw-r--r--todo.txt2
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..