Simplified standard library
This commit is contained in:
examples
lib
core
mem
net
sys
src/core
@ -13,7 +13,6 @@ const state {
|
||||
main() {
|
||||
length := 256
|
||||
command := mem.alloc(length)
|
||||
siginfo := mem.alloc(128)
|
||||
|
||||
loop {
|
||||
io.out("λ ")
|
||||
@ -31,6 +30,6 @@ main() {
|
||||
return
|
||||
}
|
||||
|
||||
sys.waitid(idtype.pid, pid, siginfo, state.exited)
|
||||
sys.waitid(idtype.pid, pid, 0, state.exited)
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
extern user32 {
|
||||
MessageBoxA(window *any, text *int8, title *int8, flags uint)
|
||||
MessageBoxA(window *any, text *int8, title *int8, flags uint) -> int
|
||||
}
|
||||
|
||||
main() {
|
||||
|
Reference in New Issue
Block a user