| 9698 | */ |
| 9699 | |
| 9700 | static void |
| 9701 | xmlXPathCompUnaryExpr(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: |
no test coverage detected