FW: [xml] Linking against the Libxml2 using a non standard XML(Patch) I mean Calling convention.



Sorry about the subject line. I really mean calling convention.

Cameron Johnson. 

-----Original Message-----
From: Johnson, Cameron 
Sent: February 2, 2004 10:24 AM
To: xml gnome org
Subject: [xml] Linking against the Libxml2 using a non standard
XML(Patch)

Due to factors beyond my control I must compile our application with
_stdcall.  Although a lot of work has been done so that the functions
can be used with any calling convention, I had to make the following
changes to get the application to link and run.

File: xmlmemory.h
Line 57
        From:
        typedef void (*xmlFreeFunc)(void *mem);
        To:
        typedef void (XMLCALL *xmlFreeFunc)(void *mem);
Line 66
        From:
        typedef void *(*xmlMallocFunc)(size_t size);
        To:
        typedef void *(XMLCALL *xmlMallocFunc)(size_t size);
Line 77
        From:
        typedef void *(*xmlReallocFunc)(void *mem, size_t size);
        To:
        typedef void *(XMLCALL *xmlReallocFunc)(void *mem, size_t size);


This allows us to link correctly without warning and allows the
application to run correctly.  Without this change I will get Stack
corruption errors upon calling xmlFree().

Cameron C. Johnson
Software Developer
FileNet Corporation
www.FileNet.com
ccjohnson FileNet com
Phone: (780) 433-3690 ext. 2225 (phone)
Fax: (780) 437-4381 (fax)

CONFIDENTIAL NOTICE: The contents of this message, including any
attachments, are confidential and are intended solely for the use of the
person or entity to whom the message was addressed. If you are not the
intended recipient of this message, please be advised that any
dissemination, distribution, or use of the contents of this message is
strictly prohibited. If you received this message in error, please
notify the sender. Please also permanently delete all copies of the
original message and any attached documentation.  Thank you.


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]