• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

Lines Matching refs:op

559     xmlXPathOp op;		/* The identifier of the operation */
599 xmlXPathStepOpPtr op, xmlNodePtr *first);
602 xmlXPathStepOpPtr op,
654 xmlXPathStepOpPtr op;
661 op = &comp->steps[i];
662 if (op->value4 != NULL) {
663 if (op->op == XPATH_OP_VALUE)
664 xmlXPathFreeObject(op->value4);
666 xmlFree(op->value4);
668 if (op->value5 != NULL)
669 xmlFree(op->value5);
673 op = &comp->steps[i];
674 if (op->value4 != NULL) {
675 if (op->op == XPATH_OP_VALUE)
676 xmlXPathFreeObject(op->value4);
706 * @op: an op
719 xmlXPathOp op, int value,
738 comp->steps[comp->nbStep].op = op;
743 ((op == XPATH_OP_FUNCTION) || (op == XPATH_OP_VARIABLE) ||
744 (op == XPATH_OP_COLLECT))) {
768 * @op: operation index
773 xmlXPathCompSwap(xmlXPathStepOpPtr op) {
786 tmp = op->ch1;
787 op->ch1 = op->ch2;
788 op->ch2 = tmp;
791 #define PUSH_FULL_EXPR(op, op1, op2, val, val2, val3, val4, val5) \
793 (op), (val), (val2), (val3), (val4), (val5))
794 #define PUSH_LONG_EXPR(op, val, val2, val3, val4, val5) \
796 (op), (val), (val2), (val3), (val4), (val5))
798 #define PUSH_LEAVE_EXPR(op, val, val2) \
799 xmlXPathCompExprAdd(ctxt->comp, -1, -1, (op), (val), (val2), 0 ,NULL ,NULL)
801 #define PUSH_UNARY_EXPR(op, ch, val, val2) \
802 xmlXPathCompExprAdd(ctxt->comp, (ch), -1, (op), (val), (val2), 0 ,NULL ,NULL)
804 #define PUSH_BINARY_EXPR(op, ch1, ch2, val, val2) \
805 xmlXPathCompExprAdd(ctxt->comp, (ch1), (ch2), (op), \
1105 xmlXPathStepOpPtr op, int depth) {
1114 if (op == NULL) {
1118 switch (op->op) {
1126 if (op->value)
1132 if (op->value)
1136 if (!op->value2)
1140 if (op->value == 0)
1142 else if (op->value == 1)
1144 else if (op->value == 2)
1146 else if (op->value == 3)
1150 if (op->value == 0)
1152 else if (op->value == 1)
1168 xmlXPathAxisVal axis = (xmlXPathAxisVal)op->value;
1169 xmlXPathTestVal test = (xmlXPathTestVal)op->value2;
1170 xmlXPathTypeVal type = (xmlXPathTypeVal)op->value3;
1171 const xmlChar *prefix = op->value4;
1172 const xmlChar *name = op->value5;
1235 xmlXPathObjectPtr object = (xmlXPathObjectPtr) op->value4;
1242 const xmlChar *prefix = op->value5;
1243 const xmlChar *name = op->value4;
1252 int nbargs = op->value;
1253 const xmlChar *prefix = op->value5;
1254 const xmlChar *name = op->value4;
1270 fprintf(output, "UNKNOWN %d\n", op->op); return;
1274 if (op->ch1 >= 0)
1275 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[op->ch1], depth + 1);
1276 if (op->ch2 >= 0)
1277 xmlXPathDebugDumpStepOp(output, comp, &comp->steps[op->ch2], depth + 1);
10640 int op = -1;
10644 op = 0;
10647 op = 1;
10650 op = 2;
10656 PUSH_BINARY_EXPR(XPATH_OP_MULT, op1, ctxt->comp->last, op, 0);
10825 if ((sort) && (ctxt->comp->steps[ctxt->comp->last].op != XPATH_OP_VALUE)) {
11358 xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op);
11450 xmlXPathStepOpPtr op,
11455 if (op->ch1 != -1) {
11460 if (comp->steps[op->ch1].op != XPATH_OP_PREDICATE) {
11466 &comp->steps[op->ch1], set, contextSize, hasNsNodes);
11471 if (op->ch2 != -1) {
11514 exprOp = &ctxt->comp->steps[op->ch2];
11604 xmlXPathStepOpPtr op,
11611 if (op->ch1 != -1) {
11613 if (comp->steps[op->ch1].op != XPATH_OP_PREDICATE) {
11619 &comp->steps[op->ch1], set, contextSize, hasNsNodes);
11632 if (op->ch2 == -1) {
11661 exprOp = &ctxt->comp->steps[op->ch2];
11783 xmlXPathStepOpPtr op,
11802 if ((op->op != XPATH_OP_PREDICATE) && (op->op != XPATH_OP_FILTER))
11805 if (op->ch2 != -1) {
11806 exprOp = &ctxt->comp->steps[op->ch2];
11811 (exprOp->op == XPATH_OP_VALUE) &&
11838 xmlXPathStepOpPtr op,
11864 xmlXPathAxisVal axis = (xmlXPathAxisVal) op->value;
11865 xmlXPathTestVal test = (xmlXPathTestVal) op->value2;
11866 xmlXPathTypeVal type = (xmlXPathTypeVal) op->value3;
11867 const xmlChar *prefix = op->value4;
11868 const xmlChar *name = op->value5;
11950 if (op->rewriteType == XP_REWRITE_DOS_CHILD_ELEM) {
12033 * COLLECT 'child' 'name' 'node' foo -- op (we are here)
12034 * ROOT -- op->ch1
12035 * PREDICATE -- op->ch2 (predOp)
12047 if (op->ch2 != -1) {
12051 predOp = &ctxt->comp->steps[op->ch2];
12475 xmlXPathStepOpPtr op, xmlNodePtr * first);
12480 * @op: an XPath compiled operation
12490 xmlXPathStepOpPtr op, xmlNodePtr * first)
12498 switch (op->op) {
12503 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch1],
12525 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch2],
12540 xmlXPathCompSwap(op);
12546 if (op->ch1 != -1)
12547 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12549 if (op->ch2 != -1)
12550 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12556 if (op->ch1 != -1)
12557 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12559 if (op->ch2 != -1)
12560 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12565 if (op->ch1 == -1)
12568 total = xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12571 total += xmlXPathNodeCollectAndTest(ctxt, op, first, NULL, 0);
12577 (xmlXPathObjectPtr) op->value4));
12580 if (op->ch1 != -1)
12582 xmlXPathCompOpEvalFirst(ctxt, &comp->steps[op->ch1],
12593 total =+ xmlXPathCompOpEvalFilterFirst(ctxt, op, first);
12597 return (xmlXPathCompOpEval(ctxt, op));
12604 * @op: an XPath compiled operation
12613 xmlXPathCompOpEvalLast(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op,
12626 switch (op->op) {
12635 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch1], last);
12656 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch2], last);
12675 xmlXPathCompSwap(op);
12681 if (op->ch1 != -1)
12682 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12684 if (op->ch2 != -1)
12685 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12691 if (op->ch1 != -1)
12692 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12694 if (op->ch2 != -1)
12695 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12700 if (op->ch1 == -1)
12703 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12706 total += xmlXPathNodeCollectAndTest(ctxt, op, NULL, last, 0);
12712 (xmlXPathObjectPtr) op->value4));
12715 if (op->ch1 != -1)
12717 xmlXPathCompOpEvalLast(ctxt, &comp->steps[op->ch1],
12727 return (xmlXPathCompOpEval(ctxt, op));
12734 xmlXPathStepOpPtr op, xmlNodePtr * first)
12750 if ((op->ch1 != -1) && (op->ch2 != -1) &&
12751 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
12752 (comp->steps[op->ch2].op == XPATH_OP_SORT)) {
12753 int f = comp->steps[op->ch2].ch1;
12756 (comp->steps[f].op == XPATH_OP_FUNCTION) &&
12766 &comp->steps[op->ch1],
12791 if (op->ch1 != -1)
12792 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
12794 if (op->ch2 == -1)
12822 if (op->ch2 != -1)
12823 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12850 if (op->ch2 != -1)
12851 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
12924 if (op->ch2 != -1)
12927 &comp->steps[op->ch2]);
12965 if (op->ch2 != -1)
12966 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13027 * @op: an XPath compiled operation
13033 xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
13046 switch (op->op) {
13054 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13064 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13080 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13090 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13106 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13112 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13114 if (op->value)
13125 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13131 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13133 ret = xmlXPathCompareValues(ctxt, op->value, op->value2);
13141 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13143 if (op->ch2 != -1) {
13148 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13151 if (op->value == 0)
13153 else if (op->value == 1)
13155 else if (op->value == 2)
13157 else if (op->value == 3) {
13167 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13173 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13175 if (op->value == 0)
13177 else if (op->value == 1)
13179 else if (op->value == 2)
13187 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13193 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13216 if (op->ch1 != -1)
13217 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13219 if (op->ch2 != -1)
13220 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13226 if (op->ch1 != -1)
13227 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13229 if (op->ch2 != -1)
13230 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13235 if (op->ch1 == -1)
13238 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13241 total += xmlXPathNodeCollectAndTest(ctxt, op, NULL, NULL, 0);
13247 (xmlXPathObjectPtr) op->value4));
13252 if (op->ch1 != -1)
13254 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13255 if (op->value5 == NULL) {
13256 val = xmlXPathVariableLookup(ctxt->context, op->value4);
13265 URI = xmlXPathNsLookup(ctxt->context, op->value5);
13269 op->value4, op->value5);
13273 op->value4, URI);
13287 if (op->ch1 != -1)
13289 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13290 if (ctxt->valueNr < op->value) {
13296 for (i = 0; i < op->value; i++)
13303 if (op->cache != NULL)
13304 XML_CAST_FPTR(func) = op->cache;
13308 if (op->value5 == NULL)
13311 op->value4);
13313 URI = xmlXPathNsLookup(ctxt->context, op->value5);
13317 op->value4, op->value5);
13321 op->value4, URI);
13326 op->value4);
13329 op->cache = XML_CAST_FPTR(func);
13330 op->cacheURI = (void *) URI;
13334 ctxt->context->function = op->value4;
13335 ctxt->context->functionURI = op->cacheURI;
13336 func(ctxt, op->value);
13346 if (op->ch1 != -1)
13347 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13353 if (op->ch2 != -1) {
13354 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch2]);
13373 if ((op->ch1 != -1) && (op->ch2 != -1) &&
13384 ((comp->steps[op->ch1].op == XPATH_OP_SORT) || /* 18 */
13385 (comp->steps[op->ch1].op == XPATH_OP_FILTER)) && /* 17 */
13387 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
13389 (comp->steps[op->ch2].op == XPATH_OP_VALUE)) { /* 12 */
13392 val = comp->steps[op->ch2].value4;
13399 &comp->steps[op->ch1],
13417 if ((op->ch1 != -1) && (op->ch2 != -1) &&
13418 (comp->steps[op->ch1].op == XPATH_OP_SORT) &&
13419 (comp->steps[op->ch2].op == XPATH_OP_SORT)) {
13420 int f = comp->steps[op->ch2].ch1;
13423 (comp->steps[f].op == XPATH_OP_FUNCTION) &&
13433 &comp->steps[op->ch1],
13467 if (op->ch1 != -1)
13469 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13471 if (op->ch2 == -1)
13499 if (op->ch2 != -1)
13502 &comp->steps[op->ch2]);
13525 if (op->ch2 != -1)
13528 &comp->steps[op->ch2]);
13589 if (op->ch2 != -1)
13592 &comp->steps[op->ch2]);
13659 if (op->ch2 != -1)
13662 &comp->steps[op->ch2]);
13718 if (op->ch1 != -1)
13719 total += xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13739 if (op->ch1 != -1)
13741 xmlXPathCompOpEval(ctxt, &comp->steps[op->ch1]);
13742 if (op->ch2 == -1)
13759 total += xmlXPathCompOpEval(ctxt,&comp->steps[op->ch2]);
13782 if (op->ch2 != -1)
13785 &comp->steps[op->ch2]);
13848 if (op->ch2 != -1)
13851 &comp->steps[op->ch2]);
13894 "XPath: unknown precompiled operation %d\n", op->op);
13908 xmlXPathStepOpPtr op,
13915 switch (op->op) {
13919 resObj = (xmlXPathObjectPtr) op->value4;
13927 if (op->ch1 != -1) {
13928 op = &ctxt->comp->steps[op->ch1];
13933 if (op->ch1 == -1)
13936 xmlXPathCompOpEval(ctxt, &ctxt->comp->steps[op->ch1]);
13940 xmlXPathNodeCollectAndTest(ctxt, op, NULL, NULL, 1);
13952 xmlXPathCompOpEval(ctxt, op);
14481 xmlXPathRewriteDOSExpression(xmlXPathCompExprPtr comp, xmlXPathStepOpPtr op)
14487 if (op->ch1 != -1) {
14488 if ((op->op == XPATH_OP_COLLECT /* 11 */) &&
14489 ((xmlXPathAxisVal) op->value == AXIS_CHILD /* 4 */) &&
14490 ((xmlXPathTestVal) op->value2 == NODE_TEST_NAME /* 5 */) &&
14491 ((xmlXPathTypeVal) op->value3 == NODE_TYPE_NODE /* 0 */))
14496 xmlXPathStepOpPtr prevop = &comp->steps[op->ch1];
14498 if ((prevop->op == XPATH_OP_COLLECT /* 11 */) &&
14505 (comp->steps[prevop->ch1].op == XPATH_OP_ROOT))
14511 op->ch1 = prevop->ch1;
14512 op->rewriteType = XP_REWRITE_DOS_CHILD_ELEM;
14515 if (op->ch1 != -1)
14516 xmlXPathRewriteDOSExpression(comp, &comp->steps[op->ch1]);
14518 if (op->ch2 != -1)
14519 xmlXPathRewriteDOSExpression(comp, &comp->steps[op->ch2]);