mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
eval: add support for C.read/3, C.malloc/1, $if openbsd {
This commit is contained in:
parent
be04ec0620
commit
f72297c331
2 changed files with 16 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue