1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check number of C function arguments for some cases (#8444)

This commit is contained in:
Nick Treleaven
2021-01-30 17:33:36 +00:00
committed by GitHub
parent 2cadb3e4d8
commit 64d12cdc8d
6 changed files with 65 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ fn C.memcmp(byteptr, byteptr, int) int
fn C.memmove(byteptr, byteptr, int) voidptr
fn C.calloc(int) byteptr
fn C.calloc(int, int) byteptr
fn C.malloc(int) byteptr
@@ -48,16 +48,16 @@ fn C.printf(byteptr, ...byteptr) int
fn C.puts(byteptr) int
fn C.fputs(byteptr) int
fn C.fputs(str byteptr, stream &C.FILE) int
fn C.fflush(byteptr) int
fn C.fflush(&C.FILE) int
// TODO define args in these functions
fn C.fseek() int
fn C.fopen() voidptr
fn C.fopen(filename charptr, mode charptr) &C.FILE
fn C.fileno(voidptr) int
fn C.fileno(&C.FILE) int
fn C.fread(ptr voidptr, item_size size_t, items size_t, stream &C.FILE) size_t
@@ -86,7 +86,7 @@ fn C.waitpid(pid int, status &int, options int) int
fn C.kill(pid int, sig int) int
fn C.setenv(charptr) int
fn C.setenv(charptr, charptr, int) int
fn C.unsetenv(charptr) int
@@ -100,7 +100,7 @@ fn C.chdir() int
fn C.rewind() int
fn C.stat(charptr) int
fn C.stat(charptr, voidptr) int
fn C.lstat() int
@@ -125,7 +125,7 @@ fn C.sleep(int) int
fn C.usleep() int
fn C.opendir() voidptr
fn C.opendir(charptr) voidptr
fn C.closedir() int