mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-27 14:14:07 +08:00
reformatting: cJSON_HasObjectItem
This commit is contained in:
parent
af44d57007
commit
17e13946fe
5
cJSON.c
5
cJSON.c
@ -1615,7 +1615,10 @@ cJSON *cJSON_GetObjectItem(cJSON *object, const char *string)
|
|||||||
return c;
|
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. */
|
/* Utility for array list handling. */
|
||||||
static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}
|
static void suffix_object(cJSON *prev,cJSON *item) {prev->next=item;item->prev=prev;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user