Moved const and extern identifiers to the left
This commit is contained in:
parent
1a2c21de15
commit
4c90b6ea6a
20 changed files with 69 additions and 86 deletions
18
lib/io/io.q
18
lib/io/io.q
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue