Lines Matching refs:newitem

1915 CJSON_PUBLIC(void) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)  in cJSON_InsertItemInArray()  argument
1927 cJSON_AddItemToArray(array, newitem); in cJSON_InsertItemInArray()
1931 newitem->next = after_inserted; in cJSON_InsertItemInArray()
1932 newitem->prev = after_inserted->prev; in cJSON_InsertItemInArray()
1933 after_inserted->prev = newitem; in cJSON_InsertItemInArray()
1936 array->child = newitem; in cJSON_InsertItemInArray()
1940 newitem->prev->next = newitem; in cJSON_InsertItemInArray()
1979 CJSON_PUBLIC(void) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem) in cJSON_ReplaceItemInArray() argument
1986 cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem); in cJSON_ReplaceItemInArray()
1989 CJSON_PUBLIC(void) cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem) in cJSON_ReplaceItemInObject() argument
1991 cJSON_ReplaceItemViaPointer(object, cJSON_GetObjectItem(object, string), newitem); in cJSON_ReplaceItemInObject()
1994 …LIC(void) cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem) in cJSON_ReplaceItemInObjectCaseSensitive() argument
1996 cJSON_ReplaceItemViaPointer(object, cJSON_GetObjectItemCaseSensitive(object, string), newitem); in cJSON_ReplaceItemInObjectCaseSensitive()
2273 cJSON *newitem = NULL; in cJSON_Duplicate() local
2284 newitem = cJSON_New_Item(&global_hooks); in cJSON_Duplicate()
2285 if (!newitem) in cJSON_Duplicate()
2290 newitem->type = item->type & (~cJSON_IsReference); in cJSON_Duplicate()
2291 newitem->valueint = item->valueint; in cJSON_Duplicate()
2292 newitem->valuedouble = item->valuedouble; in cJSON_Duplicate()
2295newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate()
2296 if (!newitem->valuestring) in cJSON_Duplicate()
2303newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned … in cJSON_Duplicate()
2304 if (!newitem->string) in cJSON_Duplicate()
2312 return newitem; in cJSON_Duplicate()
2333 newitem->child = newchild; in cJSON_Duplicate()
2339 return newitem; in cJSON_Duplicate()
2342 if (newitem != NULL) in cJSON_Duplicate()
2344 cJSON_Delete(newitem); in cJSON_Duplicate()