Re: [patch] calling convention and def file
Charles Reitzel <[email protected]>
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Corey, Ah, the joys of Windows programming! There's no way to specify the calling convention on the compiler command line? Otherwise, looks OK to me. I understand you need this to better support a .NET wrapper on both Windows and *nix. Is that right? take it easy, Charlie At 06:38 AM 2/14/2005 -0800, Cory Nelson wrote: >Here's a patch that adds the define TIDYCALL in platform.h and to each >exported function. This lets apps compiling with a different calling >convention (__cdecl, __stdcall, or __fastcall) find the exports in the >tidy .lib. (Note: it defaults to __stdcall for WIN32 and is blank for >everything else) > >It also adds a .def file in src/ so any compiler can generate a native >import library for a dll. As long as new exported functions are appended >to the .def with a new number (and no other pairs are changed), dlls will >keep binary compatibility. I don't have VC6 so I'm unable to change the >project files (they'll still compile, but the .def wont be valid for any >dlls made). > >-- >Cory Nelson >http://www.int64.org ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click