MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathCompUnaryExpr

Function xmlXPathCompUnaryExpr

ThirdParty/libxml2/vtklibxml2/xpath.c:9700–9721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9698 */
9699
9700static void
9701xmlXPathCompUnaryExpr(xmlXPathParserContextPtr ctxt) {
9702 int minus = 0;
9703 int found = 0;
9704
9705 SKIP_BLANKS;
9706 while (CUR == '-') {
9707 minus = 1 - minus;
9708 found = 1;
9709 NEXT;
9710 SKIP_BLANKS;
9711 }
9712
9713 xmlXPathCompUnionExpr(ctxt);
9714 CHECK_ERROR;
9715 if (found) {
9716 if (minus)
9717 PUSH_UNARY_EXPR(XPATH_OP_PLUS, ctxt->comp->last, 2, 0);
9718 else
9719 PUSH_UNARY_EXPR(XPATH_OP_PLUS, ctxt->comp->last, 3, 0);
9720 }
9721}
9722
9723/**
9724 * xmlXPathCompMultiplicativeExpr:

Callers 1

Calls 1

xmlXPathCompUnionExprFunction · 0.85

Tested by

no test coverage detected