mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
reformatting: cJSON_DeleteItemFromObject
This commit is contained in:
5
cJSON.c
5
cJSON.c
@@ -1763,7 +1763,10 @@ cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cJSON_DeleteItemFromObject(cJSON *object,const char *string) {cJSON_Delete(cJSON_DetachItemFromObject(object,string));}
|
void cJSON_DeleteItemFromObject(cJSON *object, const char *string)
|
||||||
|
{
|
||||||
|
cJSON_Delete(cJSON_DetachItemFromObject(object, string));
|
||||||
|
}
|
||||||
|
|
||||||
/* Replace array/object items with new ones. */
|
/* Replace array/object items with new ones. */
|
||||||
void cJSON_InsertItemInArray(cJSON *array,int which,cJSON *newitem) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) {cJSON_AddItemToArray(array,newitem);return;}
|
void cJSON_InsertItemInArray(cJSON *array,int which,cJSON *newitem) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) {cJSON_AddItemToArray(array,newitem);return;}
|
||||||
|
|||||||
Reference in New Issue
Block a user