commit | 18e1f1f1180c4d48ed52bf995b3c700c2cefb492 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Mon Aug 06 10:16:41 2012 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Mon Aug 06 10:16:41 2012 +0800 |
tree | 7e1485d3fd374d6c626b5471cce69c27da0960f6 | |
parent | 3f0c613f28396c2b1acf90ad08382f0c9620d035 [diff] |
Improvements for old buffer compatibility Now tree.h exports LIBXML2_NEW_BUFFER macro indicating that the API uses the new buffers, important to keep code working with both versions. * tree.h buf.h: also export xmlBufContent(), xmlBufEnd(), and xmlBufUse() to help port the old code * buf.c: make sure the compatibility counters are updated on buffer usage, to keep proper working of application compiled against the old structures, but take care of int overflow