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

Function xmlXPathCompAdditiveExpr

ThirdParty/libxml2/vtklibxml2/xpath.c:9776–9795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9774 */
9775
9776static void
9777xmlXPathCompAdditiveExpr(xmlXPathParserContextPtr ctxt) {
9778
9779 xmlXPathCompMultiplicativeExpr(ctxt);
9780 CHECK_ERROR;
9781 SKIP_BLANKS;
9782 while ((CUR == '+') || (CUR == '-')) {
9783 int plus;
9784 int op1 = ctxt->comp->last;
9785
9786 if (CUR == '+') plus = 1;
9787 else plus = 0;
9788 NEXT;
9789 SKIP_BLANKS;
9790 xmlXPathCompMultiplicativeExpr(ctxt);
9791 CHECK_ERROR;
9792 PUSH_BINARY_EXPR(XPATH_OP_PLUS, op1, ctxt->comp->last, plus, 0);
9793 SKIP_BLANKS;
9794 }
9795}
9796
9797/**
9798 * xmlXPathCompRelationalExpr:

Callers 1

Calls 1

Tested by

no test coverage detected