Added array type
This commit is contained in:
parent
bb01070950
commit
c0ffddaba8
13 changed files with 71 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
|||
import sys
|
||||
|
||||
alloc(length Int) -> Pointer {
|
||||
alloc(length Int) -> []Int8 {
|
||||
x := sys.mmap(0, length+8, 0x1|0x2, 0x02|0x20)
|
||||
|
||||
if x < 0x1000 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue