Lines Matching refs:pim

4040     nfa_pim_T	pim;		// if pim.result != NFA_PIM_UNUSED: postponed  member
4094 pim_info(nfa_pim_T *pim) in pim_info() argument
4098 if (pim == NULL || pim->result == NFA_PIM_UNUSED) in pim_info()
4102 sprintf(buf, " PIM col %d", REG_MULTI ? (int)pim->end.pos.col in pim_info()
4103 : (int)(pim->end.ptr - rex.input)); in pim_info()
4307 nfa_pim_T *pim) in report_state() argument
4320 pim_info(pim)); in report_state()
4333 nfa_pim_T *pim) // postponed match or NULL in has_state_with_pos() argument
4347 && pim_equal(&thread->pim, pim)) in has_state_with_pos()
4502 nfa_pim_T *pim, // postponed look-behind match in addstate() argument
4619 if (!rex.nfa_has_backref && pim == NULL && !l->has_pim in addstate()
4640 pim == NULL ? "NULL" : "yes", l->has_pim, found); in addstate()
4649 if (has_state_with_pos(l, state, subs, pim)) in addstate()
4694 if (pim == NULL) in addstate()
4695 thread->pim.result = NFA_PIM_UNUSED; in addstate()
4698 copy_pim(&thread->pim, pim); in addstate()
4707 report_state("Adding", &thread->subs.norm, state, l->id, pim); in addstate()
4714 report_state("Processing", &subs->norm, state, l->id, pim); in addstate()
4723 subs = addstate(l, state->out, subs, pim, off_arg); in addstate()
4724 subs = addstate(l, state->out1, subs, pim, off_arg); in addstate()
4730 subs = addstate(l, state->out, subs, pim, off_arg); in addstate()
4830 subs = addstate(l, state->out, subs, pim, off_arg); in addstate()
4858 subs = addstate(l, state->out, subs, pim, off_arg); in addstate()
4932 subs = addstate(l, state->out, subs, pim, off_arg); in addstate()
4965 nfa_pim_T *pim, // postponed look-behind match in addstate_here() argument
4976 r = addstate(l, state, subs, pim, -listidx - ADDSTATE_HERE_OFFSET); in addstate_here()
5285 nfa_pim_T *pim, in recursive_regmatch() argument
5302 if (pim != NULL) in recursive_regmatch()
5306 rex.input = rex.line + pim->end.pos.col; in recursive_regmatch()
5308 rex.input = pim->end.ptr; in recursive_regmatch()
5321 if (pim == NULL) in recursive_regmatch()
5327 endpos.se_u.pos = pim->end.pos; in recursive_regmatch()
5331 if (pim == NULL) in recursive_regmatch()
5334 endpos.se_u.ptr = pim->end.ptr; in recursive_regmatch()
5943 pim_info(&t->pim)); in nfa_regmatch()
6056 if (t->pim.result != NFA_PIM_UNUSED in nfa_regmatch()
6113 nfa_pim_T pim; in nfa_regmatch() local
6121 pim.state = t->state; in nfa_regmatch()
6122 pim.result = NFA_PIM_TODO; in nfa_regmatch()
6123 pim.subs.norm.in_use = 0; in nfa_regmatch()
6125 pim.subs.synt.in_use = 0; in nfa_regmatch()
6129 pim.end.pos.col = (int)(rex.input - rex.line); in nfa_regmatch()
6130 pim.end.pos.lnum = rex.lnum; in nfa_regmatch()
6133 pim.end.ptr = rex.input; in nfa_regmatch()
6139 &t->subs, &pim, &listidx) == NULL) in nfa_regmatch()
6948 nfa_pim_T *pim; in nfa_regmatch() local
6951 if (t->pim.result == NFA_PIM_UNUSED) in nfa_regmatch()
6952 pim = NULL; in nfa_regmatch()
6954 pim = &t->pim; in nfa_regmatch()
6958 if (pim != NULL && (clen == 0 || match_follows(add_state, 0))) in nfa_regmatch()
6960 if (pim->result == NFA_PIM_TODO) in nfa_regmatch()
6968 result = recursive_regmatch(pim->state, pim, in nfa_regmatch()
6970 pim->result = result ? NFA_PIM_MATCH : NFA_PIM_NOMATCH; in nfa_regmatch()
6973 if (result != (pim->state->c == NFA_START_INVISIBLE_NEG in nfa_regmatch()
6974 || pim->state->c == NFA_START_INVISIBLE_NEG_FIRST in nfa_regmatch()
6975 || pim->state->c in nfa_regmatch()
6977 || pim->state->c in nfa_regmatch()
6981 copy_sub_off(&pim->subs.norm, &m->norm); in nfa_regmatch()
6984 copy_sub_off(&pim->subs.synt, &m->synt); in nfa_regmatch()
6990 result = (pim->result == NFA_PIM_MATCH); in nfa_regmatch()
6993 fprintf(log_fd, "Using previous recursive nfa_regmatch() result, result == %d\n", pim->result); in nfa_regmatch()
7000 if (result != (pim->state->c == NFA_START_INVISIBLE_NEG in nfa_regmatch()
7001 || pim->state->c == NFA_START_INVISIBLE_NEG_FIRST in nfa_regmatch()
7002 || pim->state->c in nfa_regmatch()
7004 || pim->state->c in nfa_regmatch()
7008 copy_sub_off(&t->subs.norm, &pim->subs.norm); in nfa_regmatch()
7011 copy_sub_off(&t->subs.synt, &pim->subs.synt); in nfa_regmatch()
7020 pim = NULL; in nfa_regmatch()
7026 if (pim == &t->pim) in nfa_regmatch()
7028 copy_pim(&pim_copy, pim); in nfa_regmatch()
7029 pim = &pim_copy; in nfa_regmatch()
7034 pim, &listidx); in nfa_regmatch()
7037 r = addstate(nextlist, add_state, &t->subs, pim, add_off); in nfa_regmatch()