Improved type system
This commit is contained in:
parent
78f2670553
commit
6eab48c586
62 changed files with 189 additions and 172 deletions
10
lib/io/io.q
10
lib/io/io.q
|
@ -6,22 +6,22 @@ const std {
|
|||
err 2
|
||||
}
|
||||
|
||||
in(buffer []Int8) -> Int {
|
||||
in(buffer []int8) -> int {
|
||||
return sys.read(std.in, buffer, len(buffer))
|
||||
}
|
||||
|
||||
out(buffer []Int8) -> Int {
|
||||
out(buffer []int8) -> int {
|
||||
return sys.write(std.out, buffer, len(buffer))
|
||||
}
|
||||
|
||||
error(buffer []Int8) -> Int {
|
||||
error(buffer []int8) -> int {
|
||||
return sys.write(std.err, buffer, len(buffer))
|
||||
}
|
||||
|
||||
read(fd Int, buffer []Int8) -> Int {
|
||||
read(fd int, buffer []int8) -> int {
|
||||
return sys.read(fd, buffer, len(buffer))
|
||||
}
|
||||
|
||||
write(fd Int, buffer []Int8) -> Int {
|
||||
write(fd int, buffer []int8) -> int {
|
||||
return sys.write(fd, buffer, len(buffer))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue