reformatting: cJSON_CreateArray
This commit is contained in:
12
cJSON.c
12
cJSON.c
@@ -1916,7 +1916,17 @@ cJSON *cJSON_CreateString(const char *string)
|
|||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
cJSON *cJSON_CreateArray(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_Array;return item;}
|
cJSON *cJSON_CreateArray(void)
|
||||||
|
{
|
||||||
|
cJSON *item = cJSON_New_Item();
|
||||||
|
if(item)
|
||||||
|
{
|
||||||
|
item->type=cJSON_Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
return item;
|
||||||
|
}
|
||||||
|
|
||||||
cJSON *cJSON_CreateObject(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_Object;return item;}
|
cJSON *cJSON_CreateObject(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_Object;return item;}
|
||||||
|
|
||||||
/* Create Arrays: */
|
/* Create Arrays: */
|
||||||
|
|||||||
Reference in New Issue
Block a user