mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-29 12:41:09 +00:00
reformatting: cJSON_AddItemReferenceToArray
This commit is contained in:
1 parent
b55120eeb2
commit
55e33d7100
1 file changed
+5
-1
@@ -1699,7 +1699,11 @@ void cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)
|
|||||||
cJSON_AddItemToArray(object, item);
|
cJSON_AddItemToArray(object, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) {cJSON_AddItemToArray(array,create_reference(item));}
|
void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
|
||||||
|
{
|
||||||
|
cJSON_AddItemToArray(array, create_reference(item));
|
||||||
|
}
|
||||||
|
|
||||||
void cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item) {cJSON_AddItemToObject(object,string,create_reference(item));}
|
void cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item) {cJSON_AddItemToObject(object,string,create_reference(item));}
|
||||||
|
|
||||||
cJSON *cJSON_DetachItemFromArray(cJSON *array,int which) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) return 0;
|
cJSON *cJSON_DetachItemFromArray(cJSON *array,int which) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user