small refactor and cleanup

This commit is contained in:
IgorCielniak
2026-01-08 13:15:27 +01:00
parent 963e024108
commit d4dc6ceef5
52 changed files with 418 additions and 372 deletions

17
tests/io_write_file.sl Normal file
View File

@@ -0,0 +1,17 @@
import ../stdlib/stdlib.sl
import ../stdlib/io.sl
: main
"/tmp/l2_write_file_test.txt" # path
"hello from write_file test\n" # buffer
write_file
dup 0 > if
"wrote bytes: " puts
puti cr
0
exit
end
"write failed errno=" puts
puti cr
exit
;