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

Function xmlXPtrOriginFunction

ThirdParty/libxml2/vtklibxml2/xpointer.c:1739–1747  ·  view source on GitHub ↗

* xmlXPtrOriginFunction: * @ctxt: the XPointer Parser context * @nargs: the number of args * * Function implementing origin() operation * as described in 5.4.3 */

Source from the content-addressed store, hash-verified

1737 * as described in 5.4.3
1738 */
1739static void
1740xmlXPtrOriginFunction(xmlXPathParserContextPtr ctxt, int nargs) {
1741 CHECK_ARITY(0);
1742
1743 if (ctxt->context->origin == NULL)
1744 XP_ERROR(XPTR_SYNTAX_ERROR);
1745
1746 valuePush(ctxt, xmlXPtrNewLocationSetNodes(ctxt->context->origin, NULL));
1747}
1748
1749/**
1750 * xmlXPtrStartPointFunction:

Callers

nothing calls this directly

Calls 2

valuePushFunction · 0.85

Tested by

no test coverage detected