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

Function xmlXPathValueFlipSign

ThirdParty/libxml2/vtklibxml2/xpath.c:6411–6417  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

6409 * by calling the number function.
6410 */
6411void
6412xmlXPathValueFlipSign(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:

Callers 1

xmlXPathCompOpEvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected