From 558baf93e2a2ece9d654d25291ee9708e50fbd63 Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Mon, 4 May 2026 11:54:48 +0200 Subject: [PATCH] add todo --- tetris.jam | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tetris.jam b/tetris.jam index 2474cd3..6808be9 100644 --- a/tetris.jam +++ b/tetris.jam @@ -1,5 +1,13 @@ const { assert } = import("test"); +// the imports from ncurses that we need +// `WINDOW *` is opaque on the C side so we +// model it as `*u8` (we never deref it). ncurses' `bool` is traditionally +// `unsigned char`, not C99 _Bool, so we pass i8 with 1 = TRUE, 0 = FALSE. + +// TODO: I am not sure about [*] notation, for now I am following zig idea but +// it's very likely it will change. + extern fn setenv(name: [*]u8, value: [*]u8, overwrite: i32) i32; fn main() { -- 2.51.2