Improved type system
This commit is contained in:
parent
78f2670553
commit
6eab48c586
62 changed files with 189 additions and 172 deletions
|
@ -1,16 +1,16 @@
|
|||
extern kernel32 {
|
||||
VirtualAlloc(address Int, length Int, flags Int, protection Int)
|
||||
VirtualFree(address *Any, length Int, type Int) -> Bool
|
||||
VirtualAlloc(address int, length int, flags int, protection int)
|
||||
VirtualFree(address *any, length int, type int) -> bool
|
||||
}
|
||||
|
||||
const mem {
|
||||
decommit 0x4000
|
||||
}
|
||||
|
||||
mmap(address Int, length Int, protection Int, flags Int) -> *Any {
|
||||
mmap(address int, length int, protection int, flags int) -> *any {
|
||||
return kernel32.VirtualAlloc(address, length, flags, protection)
|
||||
}
|
||||
|
||||
munmap(address *Any, length Int) -> Int {
|
||||
munmap(address *any, length int) -> int {
|
||||
return kernel32.VirtualFree(address, length, mem.decommit)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue