Home | History | Annotate | Download | only in lib

Lines Matching defs:cur_state

1127   re_dfastate_t *cur_state;
1132 cur_state = acquire_init_state_context (&err, mctx, cur_str_idx);
1134 if (BE (cur_state == NULL, 0))
1142 mctx->state_log[cur_str_idx] = cur_state;
1149 err = check_subexp_matching_top (mctx, &cur_state->nodes, 0);
1153 if (cur_state->has_backref)
1155 err = transit_state_bkref (mctx, &cur_state->nodes);
1163 if (BE (cur_state->halt, 0))
1165 if (!cur_state->has_constraint
1166 || check_halt_state_context (mctx, cur_state, cur_str_idx))
1180 re_dfastate_t *old_state = cur_state;
1195 cur_state = transit_state (&err, mctx, cur_state);
1197 cur_state = merge_state_with_log (&err, mctx, cur_state);
1199 if (cur_state == NULL)
1209 || (cur_state = find_recover_state (&err, mctx)) == NULL)
1215 if (old_state == cur_state)
1221 if (cur_state->halt)
1225 if (!cur_state->has_constraint
1226 || check_halt_state_context (mctx, cur_state,
2202 re_dfastate_t *cur_state;
2233 cur_state = local_sctx.sifted_states[str_idx];
2245 local_sctx.sifted_states[str_idx] = cur_state;
2437 re_dfastate_t *cur_state;
2451 cur_state = merge_state_with_log (err, mctx, NULL);
2453 while (*err == REG_NOERROR && cur_state == NULL);
2454 return cur_state;
2931 re_dfastate_t *cur_state = NULL;
2979 cur_state = mctx->state_log[str_idx];
2980 if (cur_state && cur_state->has_backref)
2982 err = re_node_set_init_copy (&next_nodes, &cur_state->nodes);
2989 if (str_idx == top_str || (cur_state && cur_state->has_backref))
3001 cur_state = re_acquire_state_context (&err, dfa, &next_nodes, context);
3002 if (BE (cur_state == NULL && err != REG_NOERROR, 0))
3007 mctx->state_log[str_idx] = cur_state;
3023 if (cur_state)
3026 &cur_state->non_eps_nodes,
3052 cur_state = re_acquire_state_context (&err, dfa, &next_nodes, context);
3053 if (BE (cur_state == NULL && err != REG_NOERROR, 0))
3058 mctx->state_log[str_idx] = cur_state;
3059 null_cnt = cur_state == NULL ? null_cnt + 1 : 0;