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

Function xmlVErrMemory

ThirdParty/libxml2/vtklibxml2/valid.c:53–66  ·  view source on GitHub ↗

* xmlVErrMemory: * @ctxt: an XML validation parser context * @extra: extra information * * Handle an out of memory error */

Source from the content-addressed store, hash-verified

51 * Handle an out of memory error
52 */
53static void
54xmlVErrMemory(xmlValidCtxtPtr ctxt)
55{
56 if (ctxt != NULL) {
57 if (ctxt->flags & XML_VCTXT_USE_PCTXT) {
58 xmlCtxtErrMemory(ctxt->userData);
59 } else {
60 xmlRaiseMemoryError(NULL, ctxt->error, ctxt->userData,
61 XML_FROM_VALID, NULL);
62 }
63 } else {
64 xmlRaiseMemoryError(NULL, NULL, NULL, XML_FROM_VALID, NULL);
65 }
66}
67
68static void
69xmlDoErrValid(xmlValidCtxtPtr ctxt, xmlNodePtr node,

Callers 15

xmlDoErrValidFunction · 0.85
LIBXML_ATTR_FORMATFunction · 0.85
vstateVPushFunction · 0.85
nodeVPushFunction · 0.85
xmlAddElementDeclFunction · 0.85
xmlAddAttributeDeclFunction · 0.85
xmlAddNotationDeclFunction · 0.85
xmlAddIDFunction · 0.85
xmlAddRefFunction · 0.85
xmlGetDtdElementDesc2Function · 0.85

Calls 2

xmlCtxtErrMemoryFunction · 0.85
xmlRaiseMemoryErrorFunction · 0.85

Tested by

no test coverage detected