| 9774 | */ |
| 9775 | |
| 9776 | static void |
| 9777 | xmlXPathCompAdditiveExpr(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: |
no test coverage detected