From 57560386503be0fd023f3b7537fd496784f3be18 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 24 Jul 2012 11:44:23 +0800 Subject: Cleanup URI module memory allocation code * uri.c: cleanup the code doing the allocations, set up a structured error handler to report memory errors, and set up an abitrary limit on URI saving size * error.c include/libxml/xmlerror.h: add a new FROM_URI indication for structured error reporting, also adding strings for schematron and buffer which were missing --- include/libxml/xmlerror.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libxml/xmlerror.h b/include/libxml/xmlerror.h index 85caf52b..b2d78cd0 100644 --- a/include/libxml/xmlerror.h +++ b/include/libxml/xmlerror.h @@ -63,7 +63,8 @@ typedef enum { XML_FROM_MODULE, /* The dynamically loaded module module*/ XML_FROM_I18N, /* The module handling character conversion */ XML_FROM_SCHEMATRONV,/* The Schematron validator module */ - XML_FROM_BUFFER /* The buffers module */ + XML_FROM_BUFFER, /* The buffers module */ + XML_FROM_URI /* The URI module */ } xmlErrorDomain; /** -- cgit v1.2.3