mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: move C. calls to .c.v files (#11164)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
module builtin
|
||||
|
||||
// <string.h>
|
||||
fn C.memcpy(dest &byte, src &byte, n int) voidptr
|
||||
fn C.memcpy(dest voidptr, const_src voidptr, n size_t) voidptr
|
||||
|
||||
fn C.memcmp(&byte, &byte, int) int
|
||||
fn C.memcmp(const_s1 voidptr, const_s2 voidptr, n size_t) int
|
||||
|
||||
fn C.memmove(&byte, &byte, int) voidptr
|
||||
fn C.memmove(dest voidptr, const_src voidptr, n size_t) voidptr
|
||||
|
||||
fn C.memset(str voidptr, c int, n size_t) voidptr
|
||||
|
||||
[trusted]
|
||||
fn C.calloc(int, int) &byte
|
||||
@@ -125,8 +127,6 @@ fn C.rename(old_filename &char, new_filename &char) int
|
||||
|
||||
fn C.fgets(str &char, n int, stream &C.FILE) int
|
||||
|
||||
fn C.memset(str voidptr, c int, n size_t) int
|
||||
|
||||
[trusted]
|
||||
fn C.sigemptyset() int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user