Wrapping around stdcall

Marcus Meissner marcus at jet.franken.de
Tue Jul 5 15:35:37 CDT 2005


On Tue, Jul 05, 2005 at 10:16:08PM +0200, Felix Nawothnig wrote:
> 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...

No, we could just propose thiscall to the gcc folks.

In short and mid term this needs to be fixed with above hack or so.


CIao, Marcus



More information about the wine-devel mailing list