state->trymap = mymalloc(sizeof(Byte) * state->max_bytes, M_BYTECODES); state->try_depth = 0;
init_state(State * state, GState * gstate){    state->num_literals = state->num_forks = state->num_labels = 0;    state->num_var_refs = state->num_stacks = 0;    state->max_literal = state->max_fork = state->max_var_ref = 0;    state->num_fixups = 0;    state->max_fixups = 10;    state->fixups = mymalloc(sizeof(Fixup) * state->max_fixups, M_CODE_GEN);    state->num_bytes = 0;    state->max_bytes = 50;    state->bytes = mymalloc(sizeof(Byte) * state->max_bytes, M_BYTECODES);#ifdef BYTECODE_REDUCE_REF    state->pushmap = mymalloc(sizeof(Byte) * state->max_bytes, M_BYTECODES);#endif /* BYTECODE_REDUCE_REF */    state->cur_stack = state->max_stack = 0;    state->saved_stack = UINT_MAX;    state->num_loops = 0;    state->max_loops = 5;    state->loops = mymalloc(sizeof(Loop) * state->max_loops, M_CODE_GEN);    state->gstate = gstate;}