You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 447 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Full_Name: Dmitry Bely
Version: camlidl current cvs
OS: Windows NT 4.0
Is it possible to specify the non-standard calling convention (e.g. pascal
instead cdecl) for some function, declared in .idl file? I have a
binary-only C-library, that uses pascal calling convention (highly
optimized image processing stuff from Intel), but I cannot find the way of
using it without manual modification of camlidl-generated definitions. If I
have not missed something and that's currently not possible, maybe to add
an IDL attribute for that, say
and then just insert that string into the generated .h file:
void __stdcall some_func(....);
Or we can go MIDL way -- it recognizes
cdecl,pascal,stdcall,__cdecl,__pascal,__stdcall and maybe other specifiers
as well as C/C++ compiler and puts them into generated .h file (AFAIK it's
not documented though). Probably this way more preferable taking into
account desirable compatibility with MIDL.
It could be very helpful for Windows world (e.g., all Win32 API functions
uses __stdcall). BTW, specifing calling convention via compiler option is
not possible -- caml/camlidl runtime is build using cdecl, so we cannot
redefine it globally...
Hope to hear from you soon,
Dmitry
The text was updated successfully, but these errors were encountered:
Original bug ID: 447
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Full_Name: Dmitry Bely
Version: camlidl current cvs
OS: Windows NT 4.0
Is it possible to specify the non-standard calling convention (e.g. pascal
instead cdecl) for some function, declared in .idl file? I have a
binary-only C-library, that uses pascal calling convention (highly
optimized image processing stuff from Intel), but I cannot find the way of
using it without manual modification of camlidl-generated definitions. If I
have not missed something and that's currently not possible, maybe to add
an IDL attribute for that, say
[calling_convention("__stdcall")] void some_func(....);
and then just insert that string into the generated .h file:
void __stdcall some_func(....);
Or we can go MIDL way -- it recognizes
cdecl,pascal,stdcall,__cdecl,__pascal,__stdcall and maybe other specifiers
as well as C/C++ compiler and puts them into generated .h file (AFAIK it's
not documented though). Probably this way more preferable taking into
account desirable compatibility with MIDL.
It could be very helpful for Windows world (e.g., all Win32 API functions
uses __stdcall). BTW, specifing calling convention via compiler option is
not possible -- caml/camlidl runtime is build using cdecl, so we cannot
redefine it globally...
Hope to hear from you soon,
Dmitry
The text was updated successfully, but these errors were encountered: