reformatting: cJSON_HasObjectItem

This commit is contained in:
Max Bruckner 2016-09-30 10:36:10 +07:00
parent af44d57007
commit 17e13946fe
1 changed files with 4 additions and 1 deletions

View File

@ -1615,7 +1615,10 @@ cJSON *cJSON_GetObjectItem(cJSON *object, const char *string)
return c;
}
int cJSON_HasObjectItem(cJSON *object,const char *string) {return cJSON_GetObjectItem(object,string)?1:0;}
int cJSON_HasObjectItem(cJSON *object,const char *string)
{
return cJSON_GetObjectItem(object, string) ? 1 : 0;
}
/* Utility for array list handling. */
static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}