Lines Matching refs:depth

107 struct json_tokener* json_tokener_new_ex(int depth)  in json_tokener_new_ex()  argument
113 tok->stack = (struct json_tokener_srec *)calloc(depth, sizeof(struct json_tokener_srec)); in json_tokener_new_ex()
119 tok->max_depth = depth; in json_tokener_new_ex()
137 static void json_tokener_reset_level(struct json_tokener *tok, int depth) in json_tokener_reset_level() argument
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()
153 for(i = tok->depth; i >= 0; i--) in json_tokener_reset()
155 tok->depth = 0; in json_tokener_reset()
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
212 …(((tok)->depth == 0 && state == json_tokener_state_eatws && saved_state == json_tokener_state_fini…
348 if(tok->depth == 0) goto out; in json_tokener_parse_ex()
350 json_tokener_reset_level(tok, tok->depth); in json_tokener_parse_ex()
351 tok->depth--; in json_tokener_parse_ex()
727 if(tok->depth >= tok->max_depth-1) { in json_tokener_parse_ex()
732 tok->depth++; in json_tokener_parse_ex()
733 json_tokener_reset_level(tok, tok->depth); in json_tokener_parse_ex()
814 if(tok->depth >= tok->max_depth-1) { in json_tokener_parse_ex()
819 tok->depth++; in json_tokener_parse_ex()
820 json_tokener_reset_level(tok, tok->depth); in json_tokener_parse_ex()
852 (tok->depth == 0) && in json_tokener_parse_ex()
874 for(ii = tok->depth; ii >= 0; ii--) in json_tokener_parse_ex()