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

builtin: public/private functions, remove lots of duplicate functionality

(string.eq, compare_strings, etc)
This commit is contained in:
Alexander Medvednikov
2019-06-27 13:14:59 +02:00
parent b846d02cb2
commit 76bf732e63
15 changed files with 109 additions and 120 deletions

View File

@@ -136,7 +136,7 @@ fn json_parse(s string) *C.cJSON {
// json_string := json_print(encode_User(user))
fn json_print(json *C.cJSON) string {
s := C.cJSON_PrintUnformatted(json)
return tos(s, _strlen(s))
return tos(s, C.strlen(s))
}
// / cjson wrappers