Lines Matching refs:n_stack

2814         size_t n_stack = 1;  in json_parse_internal()  local
2826 if (!GREEDY_REALLOC(stack, n_stack)) in json_parse_internal()
2846 assert(n_stack > 0); in json_parse_internal()
2847 current = stack + n_stack - 1; in json_parse_internal()
2867 assert(n_stack == 1); in json_parse_internal()
2900 if (!GREEDY_REALLOC(stack, n_stack+1)) { in json_parse_internal()
2904 current = stack + n_stack - 1; in json_parse_internal()
2916 stack[n_stack++] = (JsonStack) { in json_parse_internal()
2922 current = stack + n_stack - 1; in json_parse_internal()
2931 assert(n_stack > 1); in json_parse_internal()
2941 n_stack--, current--; in json_parse_internal()
2951 if (!GREEDY_REALLOC(stack, n_stack+1)) { in json_parse_internal()
2955 current = stack + n_stack - 1; in json_parse_internal()
2967 stack[n_stack++] = (JsonStack) { in json_parse_internal()
2981 assert(n_stack > 1); in json_parse_internal()
2991 n_stack--, current--; in json_parse_internal()
3145 assert(n_stack == 1); in json_parse_internal()
3153 for (size_t i = 0; i < n_stack; i++) in json_parse_internal()
3196 size_t n_stack = 1; in json_buildv() local
3201 if (!GREEDY_REALLOC(stack, n_stack)) in json_buildv()
3215 assert(n_stack > 0); in json_buildv()
3216 current = stack + n_stack - 1; in json_buildv()
3484 if (!GREEDY_REALLOC(stack, n_stack+1)) { in json_buildv()
3488 current = stack + n_stack - 1; in json_buildv()
3497 stack[n_stack++] = (JsonStack) { in json_buildv()
3513 assert(n_stack > 1); in json_buildv()
3524 n_stack--, current--; in json_buildv()
3709 if (!GREEDY_REALLOC(stack, n_stack+1)) { in json_buildv()
3713 current = stack + n_stack - 1; in json_buildv()
3722 stack[n_stack++] = (JsonStack) { in json_buildv()
3739 assert(n_stack > 1); in json_buildv()
3750 n_stack--, current--; in json_buildv()
4107 assert(n_stack == 1); in json_buildv()
4114 for (size_t i = 0; i < n_stack; i++) in json_buildv()