Home
last modified time | relevance | path

Searched refs:cJSON_Number (Results 1 - 14 of 14) sorted by relevance

/third_party/cJSON/tests/
H A Dparse_array.c82 assert_has_type(item->child, cJSON_Number); in parse_array_should_parse_arrays_with_one_element()
111 assert_has_type(item->child, cJSON_Number); in parse_array_should_parse_arrays_with_multiple_elements()
112 assert_has_type(item->child->next, cJSON_Number); in parse_array_should_parse_arrays_with_multiple_elements()
113 assert_has_type(item->child->next->next, cJSON_Number); in parse_array_should_parse_arrays_with_multiple_elements()
121 cJSON_Number, in parse_array_should_parse_arrays_with_multiple_elements()
H A Dparse_object.c91 assert_is_child(item->child, "one", cJSON_Number); in parse_object_should_parse_objects_with_one_element()
110 assert_is_child(item->child, "one", cJSON_Number); in parse_object_should_parse_objects_with_multiple_elements()
111 assert_is_child(item->child->next, "two", cJSON_Number); in parse_object_should_parse_objects_with_multiple_elements()
112 assert_is_child(item->child->next->next, "three", cJSON_Number); in parse_object_should_parse_objects_with_multiple_elements()
120 cJSON_Number, in parse_object_should_parse_objects_with_multiple_elements()
H A Dmisc_int64_tests.c33 assert_has_type(int64_number_item, cJSON_Number); in assert_is_int64()
107 cJSON number[1] = {{NULL, NULL, NULL, cJSON_Number | cJSON_IsInt64, NULL, 0, 0, NULL}}; in cjson_set_number_value_should_set_numbers_with_int64()
133 item->type = cJSON_Number; in typecheck_functions_should_check_type_with_int64()
139 item->type = cJSON_Number | cJSON_IsInt64; in typecheck_functions_should_check_type_with_int64()
H A Dparse_value.c75 assert_parse_value("1.5", cJSON_Number); in parse_value_should_parse_number()
H A Dcjson_add.c251 TEST_ASSERT_EQUAL_INT(number->type, cJSON_Number); in cjson_add_number_should_add_number()
291 TEST_ASSERT_EQUAL_INT(number->type, cJSON_Number | cJSON_IsInt64); in cjson_add_int64_number_should_add_int64_number()
H A Dcompare_tests.c121 invalid->type = cJSON_Number | cJSON_String; in cjson_compare_should_not_accept_invalid_types()
H A Dparse_number.c39 assert_has_type(number_item, cJSON_Number); in assert_is_number()
H A Dprint_number.c31 cJSON item[1] = {{ NULL, NULL, NULL, cJSON_Number | cJSON_IsInt64, NULL, 0, 0, NULL }}; in assert_print_int64_number()
H A Dmisc_tests.c182 item->type = cJSON_Number | cJSON_StringIsConst; in typecheck_functions_should_check_type()
224 cJSON number[1] = {{NULL, NULL, NULL, cJSON_Number, NULL, 0, 0, NULL}}; in cjson_set_number_value_should_set_numbers()
/third_party/vulkan-loader/loader/
H A DcJSON.h36 #define cJSON_Number 3 macro
56 int valueint; /* The item's number, if type==cJSON_Number */
57 double valuedouble; /* The item's number, if type==cJSON_Number */
H A DcJSON.c126 item->type = cJSON_Number; in parse_number()
552 case cJSON_Number: in print_value()
576 case cJSON_Number: in print_value()
/third_party/cJSON/
H A DcJSON.c382 item->type = cJSON_Number | cJSON_IsInt64; in parse_number()
415 item->type = cJSON_Number; in parse_number()
493 item->type = cJSON_Number; in parse_number()
509 if (!(object->type & cJSON_Number) || !(object->type & cJSON_IsInt64)) in cJSON_SetInt64NumberValue()
733 else /* item->type == cJSON_Number */ in print_number()
1648 case cJSON_Number: in print_value()
2702 item->type = cJSON_Number | cJSON_IsInt64; in cJSON_CreateInt64Number()
2717 item->type = cJSON_Number; in cJSON_CreateNumber()
2744 item->type = cJSON_Number; in cJSON_CreateNumber()
3266 return (item->type & 0xFF) == cJSON_Number; in CJSON_PUBLIC()
[all...]
H A DcJSON_Utils.c614 case cJSON_Number: in compare_json()
629 case cJSON_Number: in compare_json()
1173 case cJSON_Number: in create_patches()
H A DcJSON.h98 #define cJSON_Number (1 << 3) macro
131 /* The item's number, if type==cJSON_Number */

Completed in 13 milliseconds