Added array type

This commit is contained in:
2025-02-09 20:25:37 +01:00
parent c69f1aab5c
commit 7634244c56
13 changed files with 71 additions and 22 deletions

View File

@ -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 {

View File

@ -1,6 +1,6 @@
import sys
alloc(length Int) -> Pointer {
alloc(length Int) -> []Int8 {
x := sys.mmap(0, length+8, 0x1|0x2, 0x02|0x1000)
if x < 0x1000 {

View File

@ -1,6 +1,6 @@
import sys
alloc(length Int) -> Pointer {
alloc(length Int) -> []Int8 {
x := sys.mmap(0, length+8, 0x0004, 0x3000)
if x < 0x1000 {