Moved const and extern identifiers to the left

This commit is contained in:
Eduard Urbach 2025-04-04 20:15:31 +02:00
parent 1a2c21de15
commit 4c90b6ea6a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
20 changed files with 69 additions and 86 deletions

View file

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