Lines Matching refs:elements
2791 JsonVariant **elements; member
2801 json_variant_unref_many(s->elements, s->n_elements); in json_stack_release()
2802 s->elements = mfree(s->elements); in json_stack_release()
2933 r = json_variant_new_object(&add, current->elements, current->n_elements); in json_parse_internal()
2983 r = json_variant_new_array(&add, current->elements, current->n_elements); in json_parse_internal()
3135 if (!GREEDY_REALLOC(current->elements, current->n_elements + 1)) { in json_parse_internal()
3140 current->elements[current->n_elements++] = TAKE_PTR(add); in json_parse_internal()
3148 *ret = json_variant_ref(stack[0].elements[0]); in json_parse_internal()
3516 … r = json_variant_new_array(&add, current->elements, current->n_elements); in json_buildv()
3742 … r = json_variant_new_object(&add, current->elements, current->n_elements); in json_buildv()
4085 … if (!GREEDY_REALLOC(current->elements, current->n_elements + 1 + !!add_more)) { in json_buildv()
4090 current->elements[current->n_elements++] = TAKE_PTR(add); in json_buildv()
4092 current->elements[current->n_elements++] = TAKE_PTR(add_more); in json_buildv()
4110 *ret = json_variant_ref(stack[0].elements[0]); in json_buildv()