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

Function xmlXPtrHereFunction

ThirdParty/libxml2/vtklibxml2/xpointer.c:1721–1729  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1719 * as described in 5.4.3
1720 */
1721static void
1722xmlXPtrHereFunction(xmlXPathParserContextPtr ctxt, int nargs) {
1723 CHECK_ARITY(0);
1724
1725 if (ctxt->context->here == NULL)
1726 XP_ERROR(XPTR_SYNTAX_ERROR);
1727
1728 valuePush(ctxt, xmlXPtrNewLocationSetNodes(ctxt->context->here, NULL));
1729}
1730
1731/**
1732 * xmlXPtrOriginFunction:

Callers

nothing calls this directly

Calls 2

valuePushFunction · 0.85

Tested by

no test coverage detected