Lines Matching refs:stack
113 tok->stack = (struct json_tokener_srec *)calloc(depth, sizeof(struct json_tokener_srec)); in json_tokener_new_ex()
114 if (!tok->stack) { in json_tokener_new_ex()
133 if (tok->stack) free(tok->stack); in json_tokener_free()
139 tok->stack[depth].state = json_tokener_state_eatws; in json_tokener_reset_level()
140 tok->stack[depth].saved_state = json_tokener_state_start; in json_tokener_reset_level()
141 json_object_put(tok->stack[depth].current); in json_tokener_reset_level()
142 tok->stack[depth].current = NULL; in json_tokener_reset_level()
143 free(tok->stack[depth].obj_field_name); in json_tokener_reset_level()
144 tok->stack[depth].obj_field_name = NULL; in json_tokener_reset_level()
187 #define state tok->stack[tok->depth].state
188 #define saved_state tok->stack[tok->depth].saved_state
189 #define current tok->stack[tok->depth].current
190 #define obj_field_name tok->stack[tok->depth].obj_field_name