• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:op

560     xmlXPathOp op;		/* The identifier of the operation */
600 xmlXPathStepOpPtr op, xmlNodePtr *first);
603 xmlXPathStepOpPtr op,
655 xmlXPathStepOpPtr op;
662 op = &comp->steps[i];
663 if (op->value4 != NULL) {
664 if (op->op == XPATH_OP_VALUE)
665 xmlXPathFreeObject(op->value4);
667 xmlFree(op->value4);
669 if (op->value5 != NULL)
670 xmlFree(op->value5);
674 op = &comp->steps[i];
675 if (op->value4 != NULL) {
676 if (op->op == XPATH_OP_VALUE)
677 xmlXPathFreeObject(op->value4);
707 * @op: an op
720 xmlXPathOp op, int value,
739 comp->steps[comp->nbStep].op = op;
744 ((op == XPATH_OP_FUNCTION) || (op == XPATH_OP_VARIABLE) ||
745 (op == XPATH_OP_COLLECT))) {
769 * @op: operation index
774 xmlXPathCompSwap(xmlXPathStepOpPtr op) {
787 tmp = op->ch1;
788 op->ch1 = op->ch2;
789 op->ch2 = tmp;
792 #define PUSH_FULL_EXPR(op, op1, op2, val, val2, val3, val4, val5) \
794 (op), (val), (val2), (val3), (val4), (val5))
795 #define PUSH_LONG_EXPR(op, val, val2, val3, val4, val5) \
797 (op), (val), (val2), (val3), (val4), (val5))
799 #define PUSH_LEAVE_EXPR(op, val, val2) \
800 xmlXPathCompExprAdd(ctxt->comp, -1, -1, (op), (val), (val2), 0 ,NULL ,NULL)
802 #define PUSH_UNARY_EXPR(op, ch, val, val2) \
803 xmlXPathCompExprAdd(ctxt->comp, (ch), -1, (op), (val), (val2), 0 ,NULL ,NULL)
805 #define PUSH_BINARY_EXPR(op, ch1, ch2, val, val2) \
806 xmlXPathCompExprAdd(ctxt->comp, (ch1), (ch2), (op), \
1106 xmlXPathStepOpPtr op, int depth) {
1115 if (op == NULL) {
1119 switch (op->op) {
1127 if (op->value)
1133 if (op->value)
1137 if (!op->value2)
1141 if (op->value == 0)
1143 else if (op->value == 1)
1145 else if (op->value == 2)
1147 else if (op->value == 3)
1151 if (op->value == 0)
1153 else if (op->value == 1)
1169 xmlXPathAxisVal axis = (xmlXPathAxisVal)op->value;
1170 xmlXPathTestVal test = (xmlXPathTestVal)op->value2;
1171 xmlXPathTypeVal type = (xmlXPathTypeVal)op->value3;
1172 const xmlChar *prefix = op->value4;
1173 const xmlChar *name = op->value5;
1236 xmlXPathObjectPtr object = (xmlXPathObjectPtr) op->value4;
1243 const xmlChar *prefix = op->value5;
1244 const xmlChar *name = op->value4;
1253 int nbargs = op->value;
1254 const xmlChar *prefix = op->value5;
1255 const xmlChar *name = op->value4;
1271 fprintf(output, "UNKNOWN %d\n", op->op); return;
1275 if (op->ch1 >= 0)
1276 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[op->ch1], depth + 1);
1277 if (op->ch2 >= 0)
1278 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[op->ch2], depth + 1);
10687 int op = -1;
10691 op = 0;
10694 op = 1;
10697 op = 2;
10703 PUSH_BINARY_EXPR(XPATH_OP_MULT, op1, ctxt->comp->last, op, 0);
10872 if ((sort) && (ctxt->comp->steps[ctxt->comp->last].op != XPATH_OP_VALUE)) {
11405 xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op);
11409 xmlXPathDebugDumpStepAxis(xmlXPathStepOpPtr op,
11413 switch (op->value) {
11460 switch (op->value2) {
11467 " searching for type %d\n", op->value3);
11480 op->value5);
11484 " searching for name %s\n", op->value5);
11485 if (op->value4)
11487 " with namespace %s\n", op->value4);
11496 xmlXPathStepOpPtr op,
11501 if (op->ch1 != -1) {
11506 if (comp->steps[op->ch1].op != XPATH_OP_PREDICATE) {
11512 &comp->steps[op->ch1], set, contextSize, hasNsNodes);
11517 if (op->ch2 != -1) {
11560 exprOp = &ctxt->comp->steps[op->ch2];
11648 xmlXPathStepOpPtr op,
11655 if (op->ch1 != -1) {
11657 if (comp->steps[op->ch1].op != XPATH_OP_PREDICATE) {
11663 &comp->steps[op->ch1], set, contextSize, hasNsNodes);
11676 if (op->ch2 == -1) {
11705 exprOp = &ctxt->comp->steps[op->ch2];
11834 xmlXPathStepOpPtr op,
11853 if ((op->op != XPATH_OP_PREDICATE) && (op->op != XPATH_OP_FILTER))
11856 if (op->ch2 != -1) {
11857 exprOp = &ctxt->comp->steps[op->ch2];
11862 (exprOp->op == XPATH_OP_VALUE) &&
11889 xmlXPathStepOpPtr op,
11915 xmlXPathAxisVal axis = (xmlXPathAxisVal) op->value;
11916 xmlXPathTestVal test = (xmlXPathTestVal) op->value2;
11917 xmlXPathTypeVal type = (xmlXPathTypeVal) op->value3;
11918 const xmlChar *prefix = op->value4;
11919 const xmlChar *name = op->value5;
12001 if (op->rewriteType == XP_REWRITE_DOS_CHILD_ELEM) {
12062 xmlXPathDebugDumpStepAxis(op,
12084 * COLLECT 'child' 'name' 'node' foo -- op (we are here)
12085 * ROOT -- op->ch1
12086 * PREDICATE -- op->ch2 (predOp)
12098 if (op->ch2 != -1) {
12102 predOp = &ctxt->comp->steps[op->ch2];
12538 xmlXPathStepOpPtr op, xmlNodePtr * first);
12543 * @op: an XPath compiled operation
12553 xmlXPathStepOpPtr op, xmlNodePtr * first)
12561 switch (op->op) {
12566 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch1],
12588 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch2],
12603 xmlXPathCompSwap(op);
12609 if (op->ch1 != -1)
12610 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12612 if (op->ch2 != -1)
12613 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12619 if (op->ch1 != -1)
12620 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12622 if (op->ch2 != -1)
12623 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12628 if (op->ch1 == -1)
12631 total = xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12634 total += xmlXPathNodeCollectAndTest(ctxt, op, first, NULL, 0);
12640 (xmlXPathObjectPtr) op->value4));
12643 if (op->ch1 != -1)
12645 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch1],
12656 total =+ xmlXPathCompOpEvalFilterFirst(ctxt, op, first);
12660 return (xmlXPathCompOpEval(ctxt, op));
12667 * @op: an XPath compiled operation
12676 xmlXPathCompOpEvalLast(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op,
12689 switch (op->op) {
12698 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch1], last);
12719 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch2], last);
12738 xmlXPathCompSwap(op);
12744 if (op->ch1 != -1)
12745 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12747 if (op->ch2 != -1)
12748 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12754 if (op->ch1 != -1)
12755 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12757 if (op->ch2 != -1)
12758 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12763 if (op->ch1 == -1)
12766 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12769 total += xmlXPathNodeCollectAndTest(ctxt, op, NULL, last, 0);
12775 (xmlXPathObjectPtr) op->value4));
12778 if (op->ch1 != -1)
12780 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch1],
12790 return (xmlXPathCompOpEval(ctxt, op));
12797 xmlXPathStepOpPtr op, xmlNodePtr * first)
12813 if ((op->ch1 != -1) && (op->ch2 != -1) &&
12814 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
12815 (comp->steps[op->ch2].op == XPATH_OP_SORT)) {
12816 int f = comp->steps[op->ch2].ch1;
12819 (comp->steps[f].op == XPATH_OP_FUNCTION) &&
12829 &comp->steps[op->ch1],
12854 if (op->ch1 != -1)
12855 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12857 if (op->ch2 == -1)
12885 if (op->ch2 != -1)
12886 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12913 if (op->ch2 != -1)
12914 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12987 if (op->ch2 != -1)
12990 &comp->steps[op->ch2]);
13029 if (op->ch2 != -1)
13030 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13091 * @op: an XPath compiled operation
13097 xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
13110 switch (op->op) {
13118 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13128 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13144 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13154 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13170 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13176 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13178 if (op->value)
13189 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13195 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13197 ret = xmlXPathCompareValues(ctxt, op->value, op->value2);
13205 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13207 if (op->ch2 != -1) {
13212 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13215 if (op->value == 0)
13217 else if (op->value == 1)
13219 else if (op->value == 2)
13221 else if (op->value == 3) {
13231 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13237 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13239 if (op->value == 0)
13241 else if (op->value == 1)
13243 else if (op->value == 2)
13251 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13257 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13280 if (op->ch1 != -1)
13281 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13283 if (op->ch2 != -1)
13284 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13290 if (op->ch1 != -1)
13291 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13293 if (op->ch2 != -1)
13294 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13299 if (op->ch1 == -1)
13302 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13305 total += xmlXPathNodeCollectAndTest(ctxt, op, NULL, NULL, 0);
13311 (xmlXPathObjectPtr) op->value4));
13316 if (op->ch1 != -1)
13318 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13319 if (op->value5 == NULL) {
13320 val = xmlXPathVariableLookup(ctxt->context, op->value4);
13329 URI = xmlXPathNsLookup(ctxt->context, op->value5);
13333 op->value4, op->value5);
13337 op->value4, URI);
13351 if (op->ch1 != -1)
13353 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13354 if (ctxt->valueNr < op->value) {
13360 for (i = 0; i < op->value; i++)
13367 if (op->cache != NULL)
13368 XML_CAST_FPTR(func) = op->cache;
13372 if (op->value5 == NULL)
13375 op->value4);
13377 URI = xmlXPathNsLookup(ctxt->context, op->value5);
13381 op->value4, op->value5);
13385 op->value4, URI);
13390 op->value4);
13393 op->cache = XML_CAST_FPTR(func);
13394 op->cacheURI = (void *) URI;
13398 ctxt->context->function = op->value4;
13399 ctxt->context->functionURI = op->cacheURI;
13400 func(ctxt, op->value);
13410 if (op->ch1 != -1)
13411 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13417 if (op->ch2 != -1) {
13418 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13437 if ((op->ch1 != -1) && (op->ch2 != -1) &&
13448 ((comp->steps[op->ch1].op == XPATH_OP_SORT) || /* 18 */
13449 (comp->steps[op->ch1].op == XPATH_OP_FILTER)) && /* 17 */
13451 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
13453 (comp->steps[op->ch2].op == XPATH_OP_VALUE)) { /* 12 */
13456 val = comp->steps[op->ch2].value4;
13463 &comp->steps[op->ch1],
13481 if ((op->ch1 != -1) && (op->ch2 != -1) &&
13482 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
13483 (comp->steps[op->ch2].op == XPATH_OP_SORT)) {
13484 int f = comp->steps[op->ch2].ch1;
13487 (comp->steps[f].op == XPATH_OP_FUNCTION) &&
13497 &comp->steps[op->ch1],
13531 if (op->ch1 != -1)
13533 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13535 if (op->ch2 == -1)
13563 if (op->ch2 != -1)
13566 &comp->steps[op->ch2]);
13589 if (op->ch2 != -1)
13592 &comp->steps[op->ch2]);
13653 if (op->ch2 != -1)
13656 &comp->steps[op->ch2]);
13723 if (op->ch2 != -1)
13726 &comp->steps[op->ch2]);
13782 if (op->ch1 != -1)
13783 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13803 if (op->ch1 != -1)
13805 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13806 if (op->ch2 == -1)
13823 total += xmlXPathCompOpEval(ctxt,&comp->steps[op->ch2]);
13846 if (op->ch2 != -1)
13849 &comp->steps[op->ch2]);
13912 if (op->ch2 != -1)
13915 &comp->steps[op->ch2]);
13958 "XPath: unknown precompiled operation %d\n", op->op);
13972 xmlXPathStepOpPtr op,
13979 switch (op->op) {
13983 resObj = (xmlXPathObjectPtr) op->value4;
13991 if (op->ch1 != -1) {
13992 op = &ctxt->comp->steps[op->ch1];
13997 if (op->ch1 == -1)
14000 xmlXPathCompOpEval(ctxt, &ctxt->comp->steps[op->ch1]);
14004 xmlXPathNodeCollectAndTest(ctxt, op, NULL, NULL, 1);
14016 xmlXPathCompOpEval(ctxt, op);
14545 xmlXPathRewriteDOSExpression(xmlXPathCompExprPtr comp, xmlXPathStepOpPtr op)
14551 if (op->ch1 != -1) {
14552 if ((op->op == XPATH_OP_COLLECT /* 11 */) &&
14553 ((xmlXPathAxisVal) op->value == AXIS_CHILD /* 4 */) &&
14554 ((xmlXPathTestVal) op->value2 == NODE_TEST_NAME /* 5 */) &&
14555 ((xmlXPathTypeVal) op->value3 == NODE_TYPE_NODE /* 0 */))
14560 xmlXPathStepOpPtr prevop = &comp->steps[op->ch1];
14562 if ((prevop->op == XPATH_OP_COLLECT /* 11 */) &&
14569 (comp->steps[prevop->ch1].op == XPATH_OP_ROOT))
14575 op->ch1 = prevop->ch1;
14576 op->rewriteType = XP_REWRITE_DOS_CHILD_ELEM;
14579 if (op->ch1 != -1)
14580 xmlXPathRewriteDOSExpression(comp, &comp->steps[op->ch1]);
14582 if (op->ch2 != -1)
14583 xmlXPathRewriteDOSExpression(comp, &comp->steps[op->ch2]);