Searched refs:cJSON_New_Item (Results 1 – 3 of 3) sorted by relevance
73 static cJSON *cJSON_New_Item(void) in cJSON_New_Item() function267 cJSON *c=cJSON_New_Item(); in cJSON_ParseWithOpts()329 item->child=child=cJSON_New_Item(); in parse_array()337 if (!(new_item=cJSON_New_Item())) return 0; /* memory fail */ in parse_array()415 item->child=child=cJSON_New_Item(); in parse_object()427 if (!(new_item=cJSON_New_Item())) return 0; /* memory fail */ in parse_object()517 static cJSON *create_reference(cJSON *item) {cJSON *ref=cJSON_New_Item();if (!ref) return 0;memcpy(… in create_reference()538 cJSON *cJSON_CreateNull(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_NULL;retur… in cJSON_CreateNull()539 cJSON *cJSON_CreateTrue(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_True;retur… in cJSON_CreateTrue()540 cJSON *cJSON_CreateFalse(void) {cJSON *item=cJSON_New_Item();if(item)item->type=cJSON_False;ret… in cJSON_CreateFalse()[all …]
241 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item() function1110 item = cJSON_New_Item(&global_hooks); in cJSON_ParseWithLengthOpts()1475 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_array()1633 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_object()1939 reference = cJSON_New_Item(hooks); in create_reference()2378 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNull()2389 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateTrue()2400 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateFalse()2411 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateBool()2422 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNumber()[all …]
243 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item() function1119 item = cJSON_New_Item(&global_hooks); in cJSON_ParseWithLengthOpts()1484 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_array()1642 cJSON *new_item = cJSON_New_Item(&(input_buffer->hooks)); in parse_object()1948 reference = cJSON_New_Item(hooks); in create_reference()2387 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNull()2398 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateTrue()2409 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateFalse()2420 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateBool()2431 cJSON *item = cJSON_New_Item(&global_hooks); in cJSON_CreateNumber()[all …]