mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
eval: add support for C.read/3, C.malloc/1, $if openbsd {
This commit is contained in:
@ -10,11 +10,11 @@ fn C.memmove(dest voidptr, const_src voidptr, n usize) voidptr
|
||||
fn C.memset(str voidptr, c int, n usize) voidptr
|
||||
|
||||
[trusted]
|
||||
fn C.calloc(int, int) &byte
|
||||
fn C.calloc(int, int) &u8
|
||||
|
||||
fn C.malloc(int) &byte
|
||||
fn C.malloc(int) &u8
|
||||
|
||||
fn C.realloc(a &byte, b int) &byte
|
||||
fn C.realloc(a &u8, b int) &u8
|
||||
|
||||
fn C.free(ptr voidptr)
|
||||
|
||||
|
Reference in New Issue
Block a user