Moved const and extern identifiers to the left

This commit is contained in:
2025-04-04 20:15:31 +02:00
parent 863fb7de5a
commit ba34637dc1
20 changed files with 69 additions and 86 deletions

View File

@ -1,6 +1,16 @@
import core
import sys
clone const {
vm 0x100
fs 0x200
files 0x400
sighand 0x800
parent 0x8000
thread 0x10000
io 0x80000000
}
create(func *any) -> int {
stack := sys.mmap(0, 4096, 0x1|0x2, 0x02|0x20|0x100)
stack += 4096 - 8
@ -8,14 +18,4 @@ create(func *any) -> int {
stack -= 8
store(stack, 8, func)
return sys.clone(clone.vm|clone.fs|clone.files|clone.sighand|clone.parent|clone.thread|clone.io, stack, 0, 0, 0)
}
const clone {
vm 0x100
fs 0x200
files 0x400
sighand 0x800
parent 0x8000
thread 0x10000
io 0x80000000
}