reformatting: cJSON_CreateArray

This commit is contained in:
Max Bruckner 2016-09-30 10:50:22 +07:00
parent 034003ce2b
commit e241081020
1 changed files with 11 additions and 1 deletions

12
cJSON.c
View File

@ -1916,7 +1916,17 @@ cJSON *cJSON_CreateString(const char *string)
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;}
/* Create Arrays: */