Fix malloc-struct-array
parent
fdbf623bd4
commit
85c79bb41e
|
@ -34,4 +34,7 @@ ERROR: bad-byte-array-length byte-array ;
|
|||
: <direct-struct-array> ( alien length c-type -- struct-array )
|
||||
struct-array boa ; inline
|
||||
|
||||
: malloc-struct-array ( length c-type -- struct-array )
|
||||
heap-size [ calloc ] 2keep <direct-struct-array> ;
|
||||
|
||||
INSTANCE: struct-array sequence
|
||||
|
|
Loading…
Reference in New Issue