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

Function xmlXPathMultValues

ThirdParty/libxml2/vtklibxml2/xpath.c:6473–6486  ·  view source on GitHub ↗

* xmlXPathMultValues: * @ctxt: the XPath Parser context * * Implement the multiply operation on XPath objects: * The numeric operators convert their operands to numbers as if * by calling the number function. */

Source from the content-addressed store, hash-verified

6471 * by calling the number function.
6472 */
6473void
6474xmlXPathMultValues(xmlXPathParserContextPtr ctxt) {
6475 xmlXPathObjectPtr arg;
6476 double val;
6477
6478 arg = valuePop(ctxt);
6479 if (arg == NULL)
6480 XP_ERROR(XPATH_INVALID_OPERAND);
6481 val = xmlXPathCastToNumberInternal(ctxt, arg);
6482 xmlXPathReleaseObject(ctxt->context, arg);
6483 CAST_TO_NUMBER;
6484 CHECK_TYPE(XPATH_NUMBER);
6485 ctxt->value->floatval *= val;
6486}
6487
6488/**
6489 * xmlXPathDivValues:

Callers 1

xmlXPathCompOpEvalFunction · 0.85

Calls 3

valuePopFunction · 0.85
xmlXPathReleaseObjectFunction · 0.85

Tested by

no test coverage detected