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

@ -105,22 +105,22 @@ fn decode_string(root &C.cJSON) string {
return tos_clone(root.valuestring) // , _strlen(root.valuestring))
}
fn C.cJSON_IsTrue() bool
fn C.cJSON_IsTrue(voidptr) bool
fn C.cJSON_CreateNumber() &C.cJSON
fn C.cJSON_CreateNumber(int) &C.cJSON
fn C.cJSON_CreateBool() &C.cJSON
fn C.cJSON_CreateBool(bool) &C.cJSON
fn C.cJSON_CreateString() &C.cJSON
fn C.cJSON_CreateString(charptr) &C.cJSON
fn C.cJSON_Parse() &C.cJSON
fn C.cJSON_Parse(charptr) &C.cJSON
fn C.cJSON_PrintUnformatted() byteptr
fn C.cJSON_PrintUnformatted(voidptr) byteptr
fn decode_bool(root &C.cJSON) bool {