MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / htmlErrMemory

Function htmlErrMemory

Externals/LibXML/HTMLparser.c:73–93  ·  view source on GitHub ↗

* htmlErrMemory: * @ctxt: an HTML parser context * @extra: extra informations * * Handle a redefinition of attribute error */

Source from the content-addressed store, hash-verified

71 * Handle a redefinition of attribute error
72 */
73static void
74htmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra)
75{
76 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
77 (ctxt->instate == XML_PARSER_EOF))
78 return;
79 if (ctxt != NULL) {
80 ctxt->errNo = XML_ERR_NO_MEMORY;
81 ctxt->instate = XML_PARSER_EOF;
82 ctxt->disableSAX = 1;
83 }
84 if (extra)
85 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER,
86 XML_ERR_NO_MEMORY, XML_ERR_FATAL, NULL, 0, extra,
87 NULL, NULL, 0, 0,
88 "Memory allocation failed : %s\n", extra);
89 else
90 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER,
91 XML_ERR_NO_MEMORY, XML_ERR_FATAL, NULL, 0, NULL,
92 NULL, NULL, 0, 0, "Memory allocation failed\n");
93}
94
95/**
96 * htmlParseErr:

Callers 9

htmlnamePushFunction · 0.85
htmlNewInputStreamFunction · 0.85
htmlNewDocNoDtDFunction · 0.85
htmlParseHTMLAttributeFunction · 0.85
htmlParsePIFunction · 0.85
htmlParseCommentFunction · 0.85
htmlParseStartTagFunction · 0.85
htmlInitParserCtxtFunction · 0.85
htmlNewParserCtxtFunction · 0.85

Calls 1

__xmlRaiseErrorFunction · 0.85

Tested by

no test coverage detected