Lines Matching refs:steps
575 int nbStep; /* Number of steps in this expression */
576 int maxStep; /* Maximum number of steps allocated */
577 xmlXPathStepOp *steps; /* ops for computation of this expression */
632 cur->steps = (xmlXPathStepOp *) xmlMalloc(cur->maxStep *
634 if (cur->steps == NULL) {
635 xmlXPathErrMemory(NULL, "allocating steps\n");
639 memset(cur->steps, 0, cur->maxStep * sizeof(xmlXPathStepOp));
663 op = &comp->steps[i];
675 op = &comp->steps[i];
683 if (comp->steps != NULL) {
684 xmlFree(comp->steps);
727 real = (xmlXPathStepOp *) xmlRealloc(comp->steps,
734 comp->steps = real;
737 comp->steps[comp->nbStep].rewriteType = 0;
738 comp->steps[comp->nbStep].ch1 = ch1;
739 comp->steps[comp->nbStep].ch2 = ch2;
740 comp->steps[comp->nbStep].op = op;
741 comp->steps[comp->nbStep].value = value;
742 comp->steps[comp->nbStep].value2 = value2;
743 comp->steps[comp->nbStep].value3 = value3;
748 comp->steps[comp->nbStep].value4 = (xmlChar *)
752 comp->steps[comp->nbStep].value4 = NULL;
754 comp->steps[comp->nbStep].value5 = (xmlChar *)
758 comp->steps[comp->nbStep].value5 = NULL;
760 comp->steps[comp->nbStep].value4 = value4;
761 comp->steps[comp->nbStep].value5 = value5;
763 comp->steps[comp->nbStep].cache = NULL;
1277 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[op->ch1], depth + 1);
1279 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[op->ch2], depth + 1);
1307 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[i], depth + 1);
10903 if ((sort) && (ctxt->comp->steps[ctxt->comp->last].op != XPATH_OP_VALUE)) {
11538 if (comp->steps[op->ch1].op != XPATH_OP_PREDICATE) {
11544 &comp->steps[op->ch1], set, contextSize, hasNsNodes);
11592 exprOp = &ctxt->comp->steps[op->ch2];
11689 if (comp->steps[op->ch1].op != XPATH_OP_PREDICATE) {
11695 &comp->steps[op->ch1], set, contextSize, hasNsNodes);
11738 exprOp = &ctxt->comp->steps[op->ch2];
11899 exprOp = &ctxt->comp->steps[op->ch2];
12144 predOp = &ctxt->comp->steps[op->ch2];
12150 predOp = &ctxt->comp->steps[predOp->ch1];
12607 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch1],
12629 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch2],
12651 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12654 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12661 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12664 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12672 total = xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12686 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch1],
12739 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch1], last);
12760 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch2], last);
12786 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12789 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12796 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12799 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12807 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12821 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch1],
12855 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
12856 (comp->steps[op->ch2].op == XPATH_OP_SORT)) {
12857 int f = comp->steps[op->ch2].ch1;
12860 (comp->steps[f].op == XPATH_OP_FUNCTION) &&
12861 (comp->steps[f].value5 == NULL) &&
12862 (comp->steps[f].value == 0) &&
12863 (comp->steps[f].value4 != NULL) &&
12865 (comp->steps[f].value4, BAD_CAST "last"))) {
12870 &comp->steps[op->ch1],
12896 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12927 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12955 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13031 &comp->steps[op->ch2]);
13070 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13158 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13168 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13184 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13194 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13210 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13216 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13229 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13235 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13245 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13252 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13271 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13277 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13291 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13297 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13321 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13324 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13331 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13334 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13342 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13358 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13396 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13459 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13466 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13496 ((comp->steps[op->ch1].op == XPATH_OP_SORT) || /* 18 */
13497 (comp->steps[op->ch1].op == XPATH_OP_FILTER)) && /* 17 */
13499 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
13501 (comp->steps[op->ch2].op == XPATH_OP_VALUE)) { /* 12 */
13504 val = comp->steps[op->ch2].value4;
13511 &comp->steps[op->ch1],
13530 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
13531 (comp->steps[op->ch2].op == XPATH_OP_SORT)) {
13532 int f = comp->steps[op->ch2].ch1;
13535 (comp->steps[f].op == XPATH_OP_FUNCTION) &&
13536 (comp->steps[f].value5 == NULL) &&
13537 (comp->steps[f].value == 0) &&
13538 (comp->steps[f].value4 != NULL) &&
13540 (comp->steps[f].value4, BAD_CAST "last"))) {
13545 &comp->steps[op->ch1],
13581 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13614 &comp->steps[op->ch2]);
13640 &comp->steps[op->ch2]);
13704 &comp->steps[op->ch2]);
13774 &comp->steps[op->ch2]);
13831 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13853 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13871 total += xmlXPathCompOpEval(ctxt,&comp->steps[op->ch2]);
13897 &comp->steps[op->ch2]);
13963 &comp->steps[op->ch2]);
14041 op = &ctxt->comp->steps[op->ch1];
14049 xmlXPathCompOpEval(ctxt, &ctxt->comp->steps[op->ch1]);
14399 &comp->steps[comp->last], 0));
14401 xmlXPathCompOpEval(ctxt, &comp->steps[comp->last]);
14610 xmlXPathStepOpPtr prevop = &comp->steps[op->ch1];
14619 (comp->steps[prevop->ch1].op == XPATH_OP_ROOT))
14630 xmlXPathRewriteDOSExpression(comp, &comp->steps[op->ch1]);
14633 xmlXPathRewriteDOSExpression(comp, &comp->steps[op->ch2]);
14696 xmlXPathRewriteDOSExpression(comp, &comp->steps[comp->last]);
14884 &ctxt->comp->steps[ctxt->comp->last]);