v: forbid function parameter names, shadowing imported module names (#17210)

This commit is contained in:
ChAoS_UnItY 2023-02-09 02:37:04 +08:00 committed by GitHub
parent c16549b6fd
commit 404a9aa442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 381 additions and 230 deletions

View file

@ -108,7 +108,7 @@ fn add_item_to_array(obj &C.cJSON, item &C.cJSON) {
C.cJSON_AddItemToArray(obj, item)
}
fn json_print(json &C.cJSON) string {
s := C.cJSON_Print(json)
fn json_print(json_ &C.cJSON) string {
s := C.cJSON_Print(json_)
return unsafe { tos3(s) }
}