* xmlXPathValueFlipSign: * @ctxt: the XPath Parser context * * Implement the unary - operation on an XPath object * The numeric operators convert their operands to numbers as if * by calling the number function. */
| 6409 | * by calling the number function. |
| 6410 | */ |
| 6411 | void |
| 6412 | xmlXPathValueFlipSign(xmlXPathParserContextPtr ctxt) { |
| 6413 | if ((ctxt == NULL) || (ctxt->context == NULL)) return; |
| 6414 | CAST_TO_NUMBER; |
| 6415 | CHECK_TYPE(XPATH_NUMBER); |
| 6416 | ctxt->value->floatval = -ctxt->value->floatval; |
| 6417 | } |
| 6418 | |
| 6419 | /** |
| 6420 | * xmlXPathAddValues: |
no outgoing calls
no test coverage detected