diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/libxml/globals.c | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/libxml/globals.c')
-rw-r--r-- | contrib/libs/libxml/globals.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/contrib/libs/libxml/globals.c b/contrib/libs/libxml/globals.c index 6c319f21a4..7bf985f487 100644 --- a/contrib/libs/libxml/globals.c +++ b/contrib/libs/libxml/globals.c @@ -92,7 +92,7 @@ xmlStrdupFunc xmlMemStrdup = (xmlStrdupFunc) xmlMemoryStrdup; * * The variable holding the libxml free() implementation */ -xmlFreeFunc xmlFree = free; +xmlFreeFunc xmlFree = free; /** * xmlMalloc: * @size: the size requested in bytes @@ -101,18 +101,18 @@ xmlFreeFunc xmlFree = free; * * Returns a pointer to the newly allocated block or NULL in case of error */ -xmlMallocFunc xmlMalloc = malloc; +xmlMallocFunc xmlMalloc = malloc; /** * xmlMallocAtomic: * @size: the size requested in bytes * * The variable holding the libxml malloc() implementation for atomic - * data (i.e. blocks not containing pointers), useful when using a + * data (i.e. blocks not containing pointers), useful when using a * garbage collecting allocator. * * Returns a pointer to the newly allocated block or NULL in case of error */ -xmlMallocFunc xmlMallocAtomic = malloc; +xmlMallocFunc xmlMallocAtomic = malloc; /** * xmlRealloc: * @mem: an already allocated block of memory @@ -122,20 +122,20 @@ xmlMallocFunc xmlMallocAtomic = malloc; * * Returns a pointer to the newly reallocated block or NULL in case of error */ -xmlReallocFunc xmlRealloc = 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)); +} /** - * 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 * @@ -143,7 +143,7 @@ xmlPosixStrdup(const char *cur) { * * Returns the copy of the string or NULL in case of error */ -xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup; +xmlStrdupFunc xmlMemStrdup = xmlPosixStrdup; #endif /* DEBUG_MEMORY_LOCATION || DEBUG_MEMORY */ #include <libxml/threads.h> @@ -260,7 +260,7 @@ static int xmlPedanticParserDefaultValueThrDef = 0; * Global setting, indicate that the parser should store the line number * in the content field of elements in the DOM tree. * Disabled by default since this may not be safe for old classes of - * application. + * application. */ int xmlLineNumbersDefaultValue = 0; static int xmlLineNumbersDefaultValueThrDef = 0; @@ -361,7 +361,7 @@ static const char *xmlTreeIndentStringThrDef = " "; * xmlSaveNoEmptyTags: * * Global setting, asking the serializer to not output empty tags - * as <empty/> but <empty></empty>. those two forms are indistinguishable + * as <empty/> but <empty></empty>. those two forms are indistinguishable * once parsed. * Disabled by default */ |