mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:52:56 +00:00
[LIBXML2] Update to version 2.9.10. CORE-16952
This commit is contained in:
parent
b82bf8ce16
commit
f22fa382fe
65 changed files with 2245 additions and 2056 deletions
12
sdk/lib/3rdparty/libxml2/buf.c
vendored
12
sdk/lib/3rdparty/libxml2/buf.c
vendored
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* buf.c: memory buffers for libxml2
|
||||
*
|
||||
* new buffer structures and entry points to simplify the maintainance
|
||||
* new buffer structures and entry points to simplify the maintenance
|
||||
* of libxml2 and ensure we keep good control over memory allocations
|
||||
* and stay 64 bits clean.
|
||||
* The new entry point use the xmlBufPtr opaque structure and
|
||||
|
@ -396,7 +396,7 @@ xmlBufShrink(xmlBufPtr buf, size_t len) {
|
|||
((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL))) {
|
||||
/*
|
||||
* we just move the content pointer, but also make sure
|
||||
* the perceived buffer size has shrinked accordingly
|
||||
* the perceived buffer size has shrunk accordingly
|
||||
*/
|
||||
buf->content += len;
|
||||
buf->size -= len;
|
||||
|
@ -958,7 +958,7 @@ xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len) {
|
|||
|
||||
if (start_buf > (unsigned int) len) {
|
||||
/*
|
||||
* We can add it in the space previously shrinked
|
||||
* We can add it in the space previously shrunk
|
||||
*/
|
||||
buf->content -= len;
|
||||
memmove(&buf->content[0], str, len);
|
||||
|
@ -1204,10 +1204,10 @@ xmlBufferPtr
|
|||
xmlBufBackToBuffer(xmlBufPtr buf) {
|
||||
xmlBufferPtr ret;
|
||||
|
||||
if ((buf == NULL) || (buf->error))
|
||||
if (buf == NULL)
|
||||
return(NULL);
|
||||
CHECK_COMPAT(buf)
|
||||
if (buf->buffer == NULL) {
|
||||
if ((buf->error) || (buf->buffer == NULL)) {
|
||||
xmlBufFree(buf);
|
||||
return(NULL);
|
||||
}
|
||||
|
@ -1307,7 +1307,7 @@ xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input) {
|
|||
CHECK_COMPAT(buf)
|
||||
base = input->base - buf->content;
|
||||
/*
|
||||
* We could do some pointer arythmetic checks but that's probably
|
||||
* We could do some pointer arithmetic checks but that's probably
|
||||
* sufficient.
|
||||
*/
|
||||
if (base > buf->size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue