Searched refs:cJSON_DetachItemViaPointer (Results 1 - 3 of 3) sorted by relevance
/third_party/cJSON/tests/ |
H A D | misc_tests.c | 273 TEST_ASSERT_TRUE_MESSAGE(cJSON_DetachItemViaPointer(parent, &(list[1])) == &(list[1]), "Failed to detach in the middle."); in cjson_detach_item_via_pointer_should_detach_items() 278 TEST_ASSERT_TRUE_MESSAGE(cJSON_DetachItemViaPointer(parent, &(list[0])) == &(list[0]), "Failed to detach beginning."); in cjson_detach_item_via_pointer_should_detach_items() 283 TEST_ASSERT_TRUE_MESSAGE(cJSON_DetachItemViaPointer(parent, &(list[3])) == &(list[3]), "Failed to detach end."); in cjson_detach_item_via_pointer_should_detach_items() 288 TEST_ASSERT_TRUE_MESSAGE(cJSON_DetachItemViaPointer(parent, &list[2]) == &list[2], "Failed to detach single item."); in cjson_detach_item_via_pointer_should_detach_items() 425 TEST_ASSERT_NULL(cJSON_DetachItemViaPointer(NULL, item)); in cjson_functions_should_not_crash_with_null_pointers() 426 TEST_ASSERT_NULL(cJSON_DetachItemViaPointer(item, NULL)); in cjson_functions_should_not_crash_with_null_pointers()
|
/third_party/cJSON/ |
H A D | cJSON.h | 255 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);
|
H A D | cJSON.c | 2449 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) in cJSON_DetachItemViaPointer() function 2492 return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which)); in cJSON_DetachItemFromArray() 2504 return cJSON_DetachItemViaPointer(object, to_detach); in cJSON_DetachItemFromObject() 2511 return cJSON_DetachItemViaPointer(object, to_detach); in cJSON_DetachItemFromObjectCaseSensitive()
|
Completed in 7 milliseconds