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

converted too small cleanup Daniel

* HTMLtree.c include/libxml/xmlerror.h: converted too
* tree.c: small cleanup
Daniel
This commit is contained in:
Daniel Veillard
2003-10-09 13:14:55 +00:00
parent 69d2c171fa
commit e2238d5617
4 changed files with 378 additions and 371 deletions

7
tree.c
View File

@ -6837,7 +6837,7 @@ xmlBufferWriteQuotedString(xmlBufferPtr buf, const xmlChar *string) {
#ifdef LIBXML_OUTPUT_ENABLED
/************************************************************************
* *
* Output memory error handler *
* Output error handlers *
* *
************************************************************************/
/**
@ -6875,10 +6875,13 @@ xmlSaveErr(int code, xmlNodePtr node, const char *extra)
case XML_SAVE_UNKNOWN_ENCODING:
msg = "unknown encoding %s";
break;
case XML_SAVE_NO_DOCTYPE:
msg = "document has no DOCTYPE";
break;
default:
msg = "unexpected error number";
}
__xmlSimpleError(XML_FROM_TREE, code, node, msg, extra);
__xmlSimpleError(XML_FROM_OUTPUT, code, node, msg, extra);
}
/************************************************************************
* *