1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-28 06:25:09 +03:00

added calling convention to the public function prototypes

This commit is contained in:
Igor Zlatkovic 2004-02-03 08:27:55 +00:00
parent b907905369
commit 18a88ce2f4
2 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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);