1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

added 2 new configure option: --with-reader --with-sax1 to allow removing

* Makefile.am SAX.c SAX2.c configure.in globals.c parser.c
  parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c
  xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in:
  added 2 new configure option: --with-reader --with-sax1
  to allow removing the reader or non-xmlReadxxx() interfaces.
Daniel
This commit is contained in:
Daniel Veillard
2003-09-30 00:43:48 +00:00
parent 652327a727
commit 8127390f03
15 changed files with 201 additions and 19 deletions

View File

@ -2781,9 +2781,12 @@ xmlLoadExternalEntity(const char *URL, const char *ID,
canonicFilename = (char *) xmlCanonicPath((const xmlChar *) URL);
if (canonicFilename == NULL) {
if (xmlDefaultSAXHandler.error != NULL) {
xmlDefaultSAXHandler.error(NULL, "out of memory\n");
}
#if 0
xmlErrMemory(NULL, "failed to load entity");
#else
xmlGenericError(xmlGenericErrorContext,
"Memory allocation failed ! : failed to load entity\n");
#endif
return(NULL);
}