int o_json_parse_end_map(void * ctx) { o_json_parse_context * pc = (o_json_parse_context *) ctx; orderly_json * n = orderly_ps_current(pc->nodeStack); orderly_ps_pop(pc->nodeStack); PUSH_NODE(pc, n); return 1; }
void ajv_state_pop(ajv_state state) { ajv_node_state s = state->node_state.stack[state->node_state.used - 1]; orderly_ps_pop(state->node_state); state->node = s->node; ajv_free_node_state(state->AF,&s); return; }
void ajv_free(ajv_handle hand) { const orderly_alloc_funcs *AF = hand->AF; ajv_node_state cur; ajv_clear_error(hand); orderly_free_node(hand->AF,(orderly_node **)&(hand->any.node)); while (orderly_ps_length(hand->node_state)) { cur = orderly_ps_current(hand->node_state); ajv_free_node_state(hand->AF,&cur); orderly_ps_pop(hand->node_state); } orderly_ps_free(hand->AF,hand->node_state); orderly_free_node(hand->AF,(orderly_node **)&(hand->any.node)); yajl_free(hand->yajl); OR_FREE(AF,hand); }