Lines Matching refs:states

114     int *states;		/* the array of step indexes */  member
150 xmlStepStatePtr states; member
464 xmlPatPushState(xmlStepStates *states, int step, xmlNodePtr node) { in xmlPatPushState() argument
465 if ((states->states == NULL) || (states->maxstates <= 0)) { in xmlPatPushState()
466 states->maxstates = 4; in xmlPatPushState()
467 states->nbstates = 0; in xmlPatPushState()
468 states->states = xmlMalloc(4 * sizeof(xmlStepState)); in xmlPatPushState()
470 else if (states->maxstates <= states->nbstates) { in xmlPatPushState()
473 tmp = (xmlStepStatePtr) xmlRealloc(states->states, in xmlPatPushState()
474 2 * states->maxstates * sizeof(xmlStepState)); in xmlPatPushState()
477 states->states = tmp; in xmlPatPushState()
478 states->maxstates *= 2; in xmlPatPushState()
480 states->states[states->nbstates].step = step; in xmlPatPushState()
481 states->states[states->nbstates++].node = node; in xmlPatPushState()
501 xmlStepStates states = {0, 0, NULL}; /* // may require backtrack */ in xmlPatMatch() local
660 xmlPatPushState(&states, i, node); in xmlPatMatch()
662 xmlPatPushState(&states, i - 1, node); in xmlPatMatch()
684 if (states.states != NULL) { in xmlPatMatch()
686 xmlFree(states.states); in xmlPatMatch()
691 if (states.states == NULL) in xmlPatMatch()
693 if (states.nbstates <= 0) { in xmlPatMatch()
694 xmlFree(states.states); in xmlPatMatch()
697 states.nbstates--; in xmlPatMatch()
698 i = states.states[states.nbstates].step; in xmlPatMatch()
699 node = states.states[states.nbstates].node; in xmlPatMatch()
1468 if (ctxt->states[2 * i] < 0) in xmlDebugStreamCtxt()
1471 printf(" %d: step %d, level %d", i, ctxt->states[2 * i], in xmlDebugStreamCtxt()
1472 ctxt->states[(2 * i) + 1]); in xmlDebugStreamCtxt()
1473 if (ctxt->comp->steps[ctxt->states[2 * i]].flags & in xmlDebugStreamCtxt()
1769 cur->states = (int *) xmlMalloc(4 * 2 * sizeof(int)); in xmlNewStreamCtxt()
1770 if (cur->states == NULL) { in xmlNewStreamCtxt()
1796 if (stream->states != NULL) in xmlFreeStreamCtxt()
1797 xmlFree(stream->states); in xmlFreeStreamCtxt()
1816 if (comp->states[2 * i] < 0) { in xmlStreamCtxtAddState()
1817 comp->states[2 * i] = idx; in xmlStreamCtxtAddState()
1818 comp->states[2 * i + 1] = level; in xmlStreamCtxtAddState()
1825 cur = (int *) xmlRealloc(comp->states, in xmlStreamCtxtAddState()
1832 comp->states = cur; in xmlStreamCtxtAddState()
1835 comp->states[2 * comp->nbState] = idx; in xmlStreamCtxtAddState()
1836 comp->states[2 * comp->nbState++ + 1] = level; in xmlStreamCtxtAddState()
1961 stepNr = stream->states[2 * (stream->nbState -1)]; in xmlStreamPushInternal()
1965 if (stream->states[(2 * (stream->nbState -1)) + 1] < in xmlStreamPushInternal()
1978 stepNr = stream->states[2 * i]; in xmlStreamPushInternal()
1984 tmp = stream->states[(2 * i) + 1]; in xmlStreamPushInternal()
2304 lev = stream->states[(2 * i) + 1]; in xmlStreamPop()