mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
added calling convention to the public function prototypes
This commit is contained in:
parent
b907905369
commit
18a88ce2f4
@ -54,7 +54,7 @@ extern "C" {
|
||||
*
|
||||
* Signature for a free() implementation.
|
||||
*/
|
||||
typedef void (*xmlFreeFunc)(void *mem);
|
||||
typedef void (XMLCALL *xmlFreeFunc)(void *mem);
|
||||
/**
|
||||
* xmlMallocFunc:
|
||||
* @size: the size requested in bytes
|
||||
@ -63,7 +63,7 @@ typedef void (*xmlFreeFunc)(void *mem);
|
||||
*
|
||||
* Returns a pointer to the newly allocated block or NULL in case of error.
|
||||
*/
|
||||
typedef void *(*xmlMallocFunc)(size_t size);
|
||||
typedef void *(XMLCALL *xmlMallocFunc)(size_t size);
|
||||
|
||||
/**
|
||||
* xmlReallocFunc:
|
||||
@ -74,7 +74,7 @@ typedef void *(*xmlMallocFunc)(size_t size);
|
||||
*
|
||||
* Returns a pointer to the newly reallocated block or NULL in case of error.
|
||||
*/
|
||||
typedef void *(*xmlReallocFunc)(void *mem, size_t size);
|
||||
typedef void *(XMLCALL *xmlReallocFunc)(void *mem, size_t size);
|
||||
|
||||
/**
|
||||
* xmlStrdupFunc:
|
||||
@ -84,7 +84,7 @@ typedef void *(*xmlReallocFunc)(void *mem, size_t size);
|
||||
*
|
||||
* Returns the copy of the string or NULL in case of error.
|
||||
*/
|
||||
typedef char *(*xmlStrdupFunc)(const char *str);
|
||||
typedef char *(XMLCALL *xmlStrdupFunc)(const char *str);
|
||||
|
||||
/*
|
||||
* The 4 interfaces used for all memory handling within libxml.
|
||||
|
@ -291,7 +291,7 @@ XMLPUBFUN int XMLCALL
|
||||
* Error handling extensions
|
||||
*/
|
||||
typedef void * xmlTextReaderLocatorPtr;
|
||||
typedef void (*xmlTextReaderErrorFunc) (void *arg,
|
||||
typedef void (XMLCALL *xmlTextReaderErrorFunc) (void *arg,
|
||||
const char *msg,
|
||||
xmlParserSeverities severity,
|
||||
xmlTextReaderLocatorPtr locator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user