Searched refs:newchild (Results 1 – 2 of 2) sorted by relevance
1143 cJSON *newitem, *cptr, *nptr = 0, *newchild; in cJSON_Duplicate() local1170 … newchild = cJSON_Duplicate(cptr, 1); /* Duplicate (with recurse) each item in the ->next chain */ in cJSON_Duplicate()1171 if (!newchild) { in cJSON_Duplicate()1176 nptr->next = newchild, newchild->prev = nptr; in cJSON_Duplicate()1177 nptr = newchild; in cJSON_Duplicate()1181 newitem->child = newchild; in cJSON_Duplicate()1182 nptr = newchild; in cJSON_Duplicate()
2721 cJSON *newchild = NULL; in cJSON_Duplicate() local2763 …newchild = cJSON_Duplicate(child, true); /* Duplicate (with recurse) each item in the ->next chain… in cJSON_Duplicate()2764 if (!newchild) in cJSON_Duplicate()2771 next->next = newchild; in cJSON_Duplicate()2772 newchild->prev = next; in cJSON_Duplicate()2773 next = newchild; in cJSON_Duplicate()2778 newitem->child = newchild; in cJSON_Duplicate()2779 next = newchild; in cJSON_Duplicate()2785 newitem->child->prev = newchild; in cJSON_Duplicate()