[libxml2] Incompatible change to the Input and Output buffers



commit 65c7d3b2e6506283eecd19a23dcf0122fbcdac33
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Jul 16 14:13:58 2012 +0800

    Incompatible change to the Input and Output buffers
    
    Since the whole set of structures was public, the only way
    to switch to size_t clean buffer is to introduce an incompatible
    API change. Modifying the xmlParserInputBuffer and xmlOutputBuffer
    structures is the best place to make this change as those
    structures are deep into the parser feeding data, and no public
    API suggest to build those manually.

 include/libxml/xmlIO.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/include/libxml/xmlIO.h b/include/libxml/xmlIO.h
index eea9ed6..c899f5b 100644
--- a/include/libxml/xmlIO.h
+++ b/include/libxml/xmlIO.h
@@ -129,8 +129,8 @@ struct _xmlParserInputBuffer {
     
     xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
     
-    xmlBufferPtr buffer;    /* Local buffer encoded in UTF-8 */
-    xmlBufferPtr raw;       /* if encoder != NULL buffer for raw input */
+    xmlBufPtr buffer;    /* Local buffer encoded in UTF-8 */
+    xmlBufPtr raw;       /* if encoder != NULL buffer for raw input */
     int	compressed;	    /* -1=unknown, 0=not compressed, 1=compressed */
     int error;
     unsigned long rawconsumed;/* amount consumed from raw */
@@ -145,8 +145,8 @@ struct _xmlOutputBuffer {
     
     xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
     
-    xmlBufferPtr buffer;    /* Local buffer encoded in UTF-8 or ISOLatin */
-    xmlBufferPtr conv;      /* if encoder != NULL buffer for output */
+    xmlBufPtr buffer;    /* Local buffer encoded in UTF-8 or ISOLatin */
+    xmlBufPtr conv;      /* if encoder != NULL buffer for output */
     int written;            /* total number of byte written */
     int error;
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]