? win32/Makefile ? win32/release Index: elfgcchack.h =================================================================== RCS file: /cvs/cvsnt/libxml/elfgcchack.h,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 elfgcchack.h *** elfgcchack.h 14 May 2008 15:08:13 -0000 1.1.2.1 --- elfgcchack.h 11 Jul 2008 06:39:29 -0000 *************** *** 5151,5161 **** --- 5151,5167 ---- #ifdef bottom_xmlmemory #undef xmlMemFree + #undef xmlHPUXFree extern __typeof (xmlMemFree) xmlMemFree __attribute((alias("xmlMemFree__internal_alias"))); + extern __typeof (xmlHPUXFree) xmlHPUXFree __attribute((alias("xmlHPUXFree__internal_alias"))); #else #ifndef xmlMemFree extern __typeof (xmlMemFree) xmlMemFree__internal_alias __attribute((visibility("hidden"))); #define xmlMemFree xmlMemFree__internal_alias + #endif + #ifndef xmlHPUXFree + extern __typeof (xmlHPUXFree) xmlHPUXFree__internal_alias __attribute((visibility("hidden"))); + #define xmlHPUXFree xmlHPUXFree__internal_alias #endif #endif Index: globals.c =================================================================== RCS file: /cvs/cvsnt/libxml/globals.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 globals.c *** globals.c 14 May 2008 15:08:14 -0000 1.1.2.1 --- globals.c 11 Jul 2008 06:39:53 -0000 *************** *** 90,96 **** --- 90,100 ---- * * The variable holding the libxml free() implementation */ + #if 0 xmlFreeFunc xmlFree = (xmlFreeFunc) free; + #else + xmlFreeFunc xmlFree = (xmlFreeFunc) xmlHPUXFree; + #endif /** * xmlMalloc: * @size: the size requested in bytes *************** *** 522,528 **** --- 526,536 ---- gs->xmlRealloc = (xmlReallocFunc) xmlMemRealloc; gs->xmlMemStrdup = (xmlStrdupFunc) xmlMemoryStrdup; #else + #if 0 gs->xmlFree = (xmlFreeFunc) free; + #else + gs->xmlFree = (xmlFreeFunc) xmlHPUXFree; + #endif gs->xmlMalloc = (xmlMallocFunc) malloc; gs->xmlMallocAtomic = (xmlMallocFunc) malloc; gs->xmlRealloc = (xmlReallocFunc) realloc; Index: xmlmemory.c =================================================================== RCS file: /cvs/cvsnt/libxml/xmlmemory.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 xmlmemory.c *** xmlmemory.c 14 May 2008 15:08:16 -0000 1.1.2.1 --- xmlmemory.c 11 Jul 2008 06:39:29 -0000 *************** *** 463,468 **** --- 463,482 ---- } /** + * xmlHPUXFree: + * @ptr: the memory block pointer + * + * a free() equivalent, works on HPUX with static linking. + */ + void + xmlHPUXFree(void *ptr) + { + free(ptr); + + return; + } + + /** * xmlMemStrdupLoc: * @str: the initial string pointer * @file: the file name or NULL Index: include/libxml/xmlmemory.h =================================================================== RCS file: /cvs/cvsnt/libxml/include/libxml/xmlmemory.h,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 xmlmemory.h *** include/libxml/xmlmemory.h 14 May 2008 15:08:33 -0000 1.1.2.1 --- include/libxml/xmlmemory.h 11 Jul 2008 06:39:29 -0000 *************** *** 153,158 **** --- 153,160 ---- xmlMemRealloc (void *ptr,size_t size); XMLPUBFUN void XMLCALL xmlMemFree (void *ptr); + XMLPUBFUN void XMLCALL + xmlHPUXFree (void *ptr); XMLPUBFUN char * XMLCALL xmlMemoryStrdup (const char *str); XMLPUBFUN void * XMLCALL