Searched refs:valuedouble (Results 1 – 8 of 8) sorted by relevance
/third_party/cJSON/tests/ |
D | misc_tests.c | 83 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 1); in cjson_get_object_item_should_get_object_items() 87 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 2); in cjson_get_object_item_should_get_object_items() 91 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 3); in cjson_get_object_item_should_get_object_items() 114 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 1); in cjson_get_object_item_case_sensitive_should_get_object_items() 118 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 2); in cjson_get_object_item_case_sensitive_should_get_object_items() 122 TEST_ASSERT_EQUAL_DOUBLE(found->valuedouble, 3); in cjson_get_object_item_case_sensitive_should_get_object_items() 228 TEST_ASSERT_EQUAL_DOUBLE(1.5, number->valuedouble); in cjson_set_number_value_should_set_numbers() 232 TEST_ASSERT_EQUAL_DOUBLE(-1.5, number->valuedouble); in cjson_set_number_value_should_set_numbers() 236 TEST_ASSERT_EQUAL_DOUBLE(1 + (double)INT_MAX, number->valuedouble); in cjson_set_number_value_should_set_numbers() 240 TEST_ASSERT_EQUAL_DOUBLE(-1 + (double)INT_MIN, number->valuedouble); in cjson_set_number_value_should_set_numbers() [all …]
|
D | readme_examples.c | 205 if (compare_double(width->valuedouble, 1920) && compare_double(height->valuedouble, 1080)) in supports_full_hd()
|
D | parse_number.c | 55 TEST_ASSERT_EQUAL_DOUBLE(real, item->valuedouble); in assert_parse_number()
|
D | cjson_add.c | 252 TEST_ASSERT_EQUAL_DOUBLE(number->valuedouble, 42); in cjson_add_number_should_add_number()
|
/third_party/cJSON/ |
D | cJSON.h | 119 double valuedouble; member 275 #define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = …
|
D | cJSON.c | 116 return item->valuedouble; in cJSON_GetNumberValue() 359 item->valuedouble = number; in parse_number() 397 return object->valuedouble = number; in cJSON_SetNumberHelper() 548 double d = item->valuedouble; in print_number() 2426 item->valuedouble = num; in cJSON_CreateNumber() 2718 newitem->valuedouble = item->valuedouble; in cJSON_Duplicate() 3016 if (compare_double(a->valuedouble, b->valuedouble)) in cJSON_Compare()
|
D | cJSON_Utils.c | 615 if ((a->valueint != b->valueint) || (!compare_double(a->valuedouble, b->valuedouble))) in compare_json() 1157 … if ((from->valueint != to->valueint) || !compare_double(from->valuedouble, to->valuedouble)) in create_patches()
|
D | README.md | 183 double valuedouble; 198 …mber`): Represents a number value. The value is stored as a double in `valuedouble` and also in `v… 221 * **numbers** are created with `cJSON_CreateNumber`. This will set both `valuedouble` and `valueint… 508 if ((width->valuedouble == 1920) && (height->valuedouble == 1080))
|