Home
last modified time | relevance | path

Searched refs:cJSON_DetachItemViaPointer (Results 1 - 3 of 3) sorted by relevance

/third_party/cJSON/tests/
H A Dmisc_tests.c273 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 DcJSON.h255 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);
H A DcJSON.c2449 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