[Gc] RE: GC API: addition of calling conventions

Boehm, Hans hans.boehm at hp.com
Fri Oct 24 18:00:33 PDT 2008


Thanks.  I'm in the process of checking this in.

Hans

> -----Original Message-----
> From: Ivan Maidanski [mailto:ivmai at mail.ru]
> Sent: Friday, October 17, 2008 2:48 AM
> To: gc at linux.hpl.hp.com
> Subject: GC API: addition of calling conventions
>
> Hi!
>
> Sometimes (on Win32) it's necessary to specify alternative
> calling conventions for the exported functions. E.g., with
> VC++ we may use "-Gr -DGC_CALL=__cdecl" either when building
> GC or when using it.
>
> The suggested patch for GC gives such flexibility. GC_CALL
> macro is used (if defined) to specify calling conventions for
> the exported functions, and, moreover, GC_CALLBACK macro is
> used to specify calling conventions of the user call-backs
> (same as GC_CALL if undefined).
>
> In addition, this patch does some minor code non-functional
> polishing in test.c (removal of unused variable, assuming
> ANSI C compiler, conditional defining of local variable,
> addition of missing function prototype).
>
> Bye.
>
>
>



More information about the Gc mailing list