Wrapping around stdcall
Felix Nawothnig
felix.nawothnig at t-online.de
Tue Jul 5 15:16:08 CDT 2005
Marcus Meissner wrote:
>>I wonder how I can do this cleaner (Meaning no compiler warnings without
>> ugly hacks). Also I would like to know how to call a function like
>>__thiscall_fnTextSrv_TxSendMessage, because some methods I need are
>>implemented in windows' stdcall. And I would like to know wether
>>include/textserv.h needs to be adjusted now that I know they are not WINAPI.
> Adding "thiscall" to gcc would perhaps help in the long run ... :/ Fun fun fun...
Considering that gcc already knows regparm and we just need regparm(1)
with ecx instead eax hacking in "thiscall" for C code shouldn't be too
hard I think.
But since this would be a very Wine-specific hack I doubt it would get
into GCC. The right way would probably to extend the regparm attribute
to allow specifying arbitrary registers...
Felix
More information about the wine-devel
mailing list