Modified const and extern to always use blocks
This commit is contained in:
14
lib/io/io.q
14
lib/io/io.q
@ -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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user