Modified const and extern to always use blocks

This commit is contained in:
Eduard Urbach 2025-04-05 19:34:50 +02:00
parent ba34637dc1
commit 543558a02b
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
16 changed files with 164 additions and 90 deletions

View file

@ -1,11 +1,5 @@
import sys
std const {
in 0
out 1
err 2
}
in(buffer []byte) -> int {
return sys.read(std.in, buffer, len(buffer))
}
@ -24,4 +18,12 @@ read(fd int, buffer []byte) -> int {
write(fd int, buffer []byte) -> int {
return sys.write(fd, buffer, len(buffer))
}
const {
std {
in 0
out 1
err 2
}
}