Lines Matching defs:child

86         if (!(c->type & cJSON_IsReference) && c->child) loader_cJSON_Delete(c->child);
595 cJSON *child;
605 item->child = child = cJSON_New_Item(item->pAllocator);
606 if (!item->child) {
610 value = skip(parse_value(child, skip(value), out_of_memory)); /* skip any spacing, get the value. */
620 child->next = new_item;
621 new_item->prev = child;
622 child = new_item;
623 value = skip(parse_value(child, skip(value + 1), out_of_memory));
637 cJSON *child = item->child;
642 while (child) numentries++, child = child->next;
660 child = item->child;
661 while (child && !fail) {
662 print_value(child, depth + 1, fmt, p);
664 if (child->next) {
673 child = child->next;
686 child = item->child;
687 while (child && !fail) {
688 ret = print_value(child, depth + 1, fmt, 0);
694 child = child->next;
734 cJSON *child;
744 item->child = child = cJSON_New_Item(item->pAllocator);
745 if (!item->child) {
749 value = skip(parse_string(child, skip(value), out_of_memory));
751 child->string = child->valuestring;
752 child->valuestring = 0;
757 value = skip(parse_value(child, skip(value + 1), out_of_memory)); /* skip any spacing, get the value. */
767 child->next = new_item;
768 new_item->prev = child;
769 child = new_item;
770 value = skip(parse_string(child, skip(value + 1), out_of_memory));
772 child->string = child->valuestring;
773 child->valuestring = 0;
778 value = skip(parse_value(child, skip(value + 1), out_of_memory)); /* skip any spacing, get the value. */
792 cJSON *child = item->child;
796 while (child) numentries++, child = child->next;
824 child = item->child;
826 while (child) {
833 print_string_ptr(item->pAllocator, child->string, p);
843 print_value(child, depth, fmt, p);
846 len = (fmt ? 1 : 0) + (child->next ? 1 : 0);
849 if (child->next) *ptr++ = ',';
853 child = child->next;
875 child = item->child;
878 while (child) {
879 names[i] = str = print_string_ptr(item->pAllocator, child->string, 0);
880 entries[i++] = ret = print_value(child, depth, fmt, 0);
885 child = child->next;
938 cJSON *c = array->child;
944 cJSON *c = array->child;
949 cJSON *c = object->child;