Subject | Re: [firebird-support] Re: possible bug with firebird2/isc_version (??) |
---|---|
Author | Dmitry Yemanov |
Post date | 2007-01-27T19:02:26Z |
jrmrenegade wrote:
~~~ ~~~ ~~~
#define ISC_EXPORT __stdcall
...
typedef void (* isc_callback) ();
...
int ISC_EXPORT isc_version(isc_db_handle *, isc_callback, void *);
~~~ ~~~ ~~~
So, we see that isc_version() call is a "stdcall" one, while the
callback argument is not. It implies that it's "cdecl".
Dmitry
>The official API is ibase.h:
> This library that I have uses stdcall for all windows versions, so
> this brings up the question: Is this library wrong? should all the
> dll functions be called with cdecl? Is the calling convention
> requirements documented anywhere?
~~~ ~~~ ~~~
#define ISC_EXPORT __stdcall
...
typedef void (* isc_callback) ();
...
int ISC_EXPORT isc_version(isc_db_handle *, isc_callback, void *);
~~~ ~~~ ~~~
So, we see that isc_version() call is a "stdcall" one, while the
callback argument is not. It implies that it's "cdecl".
Dmitry