1
0
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:
Delyan Angelov
2022-04-28 11:30:36 +03:00
parent be04ec0620
commit f72297c331
2 changed files with 16 additions and 5 deletions

View File

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