mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:23:10 +00:00
[LIBXML2] Update to version 2.9.8. CORE-15280
This commit is contained in:
parent
61fed54064
commit
5bb277a54b
37 changed files with 545 additions and 493 deletions
22
sdk/lib/3rdparty/libxml2/globals.c
vendored
22
sdk/lib/3rdparty/libxml2/globals.c
vendored
|
@ -92,7 +92,7 @@ xmlStrdupFunc xmlMemStrdup = (xmlStrdupFunc) xmlMemoryStrdup;
|
|||
*
|
||||
* The variable holding the libxml free() implementation
|
||||
*/
|
||||
xmlFreeFunc xmlFree = (xmlFreeFunc) free;
|
||||
xmlFreeFunc xmlFree = free;
|
||||
/**
|
||||
* xmlMalloc:
|
||||
* @size: the size requested in bytes
|
||||
|
@ -101,7 +101,7 @@ xmlFreeFunc xmlFree = (xmlFreeFunc) free;
|
|||
*
|
||||
* Returns a pointer to the newly allocated block or NULL in case of error
|
||||
*/
|
||||
xmlMallocFunc xmlMalloc = (xmlMallocFunc) malloc;
|
||||
xmlMallocFunc xmlMalloc = malloc;
|
||||
/**
|
||||
* xmlMallocAtomic:
|
||||
* @size: the size requested in bytes
|
||||
|
@ -112,7 +112,7 @@ xmlMallocFunc xmlMalloc = (xmlMallocFunc) malloc;
|
|||
*
|
||||
* Returns a pointer to the newly allocated block or NULL in case of error
|
||||
*/
|
||||
xmlMallocFunc xmlMallocAtomic = (xmlMallocFunc) malloc;
|
||||
xmlMallocFunc xmlMallocAtomic = malloc;
|
||||
/**
|
||||
* xmlRealloc:
|
||||
* @mem: an already allocated block of memory
|
||||
|
@ -122,7 +122,19 @@ xmlMallocFunc xmlMallocAtomic = (xmlMallocFunc) malloc;
|
|||
*
|
||||
* Returns a pointer to the newly reallocated block or NULL in case of error
|
||||
*/
|
||||
xmlReallocFunc xmlRealloc = (xmlReallocFunc) realloc;
|
||||
xmlReallocFunc xmlRealloc = realloc;
|
||||
/**
|
||||
* xmlPosixStrdup
|
||||
* @cur: the input char *
|
||||
*
|
||||
* a strdup implementation with a type signature matching POSIX
|
||||
*
|
||||
* Returns a new xmlChar * or NULL
|
||||
*/
|
||||
static char *
|
||||
xmlPosixStrdup(const char *cur) {
|
||||
return((char*) xmlCharStrdup(cur));
|
||||
}
|
||||
/**
|
||||
* xmlMemStrdup:
|
||||
* @str: a zero terminated string
|
||||
|
@ -131,7 +143,7 @@ xmlReallocFunc xmlRealloc = (xmlReallocFunc) realloc;
|
|||
*
|
||||
* Returns the copy of the string or NULL in case of error
|
||||
*/
|
||||
xmlStrdupFunc xmlMemStrdup = (xmlStrdupFunc) xmlStrdup;
|
||||
xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup;
|
||||
#endif /* DEBUG_MEMORY_LOCATION || DEBUG_MEMORY */
|
||||
|
||||
#include <libxml/threads.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue