Lines Matching defs:parent
2449 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2451 if ((parent == NULL) || (item == NULL) || (item != parent->child && item->prev == NULL))
2456 if (item != parent->child)
2467 if (item == parent->child)
2470 parent->child = item->next;
2475 parent->child->prev = item->prev;
2559 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)
2561 if ((parent == NULL) || (parent->child == NULL) || (replacement == NULL) || (item == NULL))
2578 if (parent->child == item)
2580 if (parent->child->prev == parent->child)
2584 parent->child = replacement;
2589 * We can't modify the last item's next pointer where this item was the parent's child
2597 parent->child->prev = replacement;