From 6e5063f9cc067a6e98df610c4cad1571f2253a20 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Fri, 30 Sep 2016 10:42:25 +0700 Subject: [PATCH] reformatting: cJSON_DeleteItemFromArray --- cJSON.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 42fd2a3..8e20254 100644 --- a/cJSON.c +++ b/cJSON.c @@ -1741,7 +1741,11 @@ cJSON *cJSON_DetachItemFromArray(cJSON *array, int which) return c; } -void cJSON_DeleteItemFromArray(cJSON *array,int which) {cJSON_Delete(cJSON_DetachItemFromArray(array,which));} +void cJSON_DeleteItemFromArray(cJSON *array, int which) +{ + cJSON_Delete(cJSON_DetachItemFromArray(array, which)); +} + cJSON *cJSON_DetachItemFromObject(cJSON *object,const char *string) {int i=0;cJSON *c=object->child;while (c && cJSON_strcasecmp(c->string,string)) i++,c=c->next;if (c) return cJSON_DetachItemFromArray(object,i);return 0;} void cJSON_DeleteItemFromObject(cJSON *object,const char *string) {cJSON_Delete(cJSON_DetachItemFromObject(object,string));}