Searched refs:num64 (Results 1 – 4 of 4) sorted by relevance
/device/google/crosshatch/json-c/ |
D | json_util.c | 160 int64_t num64; in sscanf_is_broken_test() local 163 (void)sscanf(" -01234567890123456789012345", "%" SCNd64, &num64); in sscanf_is_broken_test() 165 is_int64_min = (num64 == INT64_MIN); in sscanf_is_broken_test() 167 (void)sscanf(" 01234567890123456789012345", "%" SCNd64, &num64); in sscanf_is_broken_test() 169 is_int64_max = (num64 == INT64_MAX); in sscanf_is_broken_test() 181 int64_t num64; in json_parse_int64() local 197 if (sscanf(buf, "%" SCNd64, &num64) != 1) in json_parse_int64() 223 if (num64 == 0) // assume all sscanf impl's will parse -0 to 0 in json_parse_int64() 226 snprintf(buf_cmp_start, sizeof(buf_cmp), "%" PRId64, num64); in json_parse_int64() 258 num64 = INT64_MIN; in json_parse_int64() [all …]
|
D | json_tokener.c | 692 int64_t num64; in json_tokener_parse_ex() local 694 if (!tok->is_double && json_parse_int64(tok->pb->buf, &num64) == 0) { in json_tokener_parse_ex() 695 if (num64 && tok->pb->buf[0]=='0' && (tok->flags & JSON_TOKENER_STRICT)) { in json_tokener_parse_ex() 700 current = json_object_new_int64(num64); in json_tokener_parse_ex()
|
/device/google/bonito/json-c/ |
D | json_util.c | 160 int64_t num64; in sscanf_is_broken_test() local 163 (void)sscanf(" -01234567890123456789012345", "%" SCNd64, &num64); in sscanf_is_broken_test() 165 is_int64_min = (num64 == INT64_MIN); in sscanf_is_broken_test() 167 (void)sscanf(" 01234567890123456789012345", "%" SCNd64, &num64); in sscanf_is_broken_test() 169 is_int64_max = (num64 == INT64_MAX); in sscanf_is_broken_test() 181 int64_t num64; in json_parse_int64() local 197 if (sscanf(buf, "%" SCNd64, &num64) != 1) in json_parse_int64() 223 if (num64 == 0) // assume all sscanf impl's will parse -0 to 0 in json_parse_int64() 226 snprintf(buf_cmp_start, sizeof(buf_cmp), "%" PRId64, num64); in json_parse_int64() 258 num64 = INT64_MIN; in json_parse_int64() [all …]
|
D | json_tokener.c | 692 int64_t num64; in json_tokener_parse_ex() local 694 if (!tok->is_double && json_parse_int64(tok->pb->buf, &num64) == 0) { in json_tokener_parse_ex() 695 if (num64 && tok->pb->buf[0]=='0' && (tok->flags & JSON_TOKENER_STRICT)) { in json_tokener_parse_ex() 700 current = json_object_new_int64(num64); in json_tokener_parse_ex()
|