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

Function xmlCtxtResetLastError

ThirdParty/libxml2/vtklibxml2/error.c:997–1008  ·  view source on GitHub ↗

* xmlCtxtResetLastError: * @ctx: an XML parser context * * Cleanup the last global error registered. For parsing error * this does not change the well-formedness result. */

Source from the content-addressed store, hash-verified

995 * this does not change the well-formedness result.
996 */
997void
998xmlCtxtResetLastError(void *ctx)
999{
1000 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
1001
1002 if (ctxt == NULL)
1003 return;
1004 ctxt->errNo = XML_ERR_OK;
1005 if (ctxt->lastError.code == XML_ERR_OK)
1006 return;
1007 xmlResetError(&ctxt->lastError);
1008}
1009
1010/**
1011 * xmlCopyError:

Callers

nothing calls this directly

Calls 1

xmlResetErrorFunction · 0.85

Tested by

no test coverage detected