* xmlXPtrHereFunction: * @ctxt: the XPointer Parser context * @nargs: the number of args * * Function implementing here() operation * as described in 5.4.3 */
| 1719 | * as described in 5.4.3 |
| 1720 | */ |
| 1721 | static void |
| 1722 | xmlXPtrHereFunction(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: |
nothing calls this directly
no test coverage detected