From 18a88ce2f4bf7fd107d62bcd5724658306e08cb2 Mon Sep 17 00:00:00 2001 From: Igor Zlatkovic Date: Tue, 3 Feb 2004 08:27:55 +0000 Subject: [PATCH] added calling convention to the public function prototypes --- include/libxml/xmlmemory.h | 8 ++++---- include/libxml/xmlreader.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/libxml/xmlmemory.h b/include/libxml/xmlmemory.h index 130036ce..0e6a7672 100644 --- a/include/libxml/xmlmemory.h +++ b/include/libxml/xmlmemory.h @@ -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. diff --git a/include/libxml/xmlreader.h b/include/libxml/xmlreader.h index 76499b82..4e452014 100644 --- a/include/libxml/xmlreader.h +++ b/include/libxml/xmlreader.h @@ -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);