OK, I'll try and find a cleaner way to implement this.
Cheers,
Jon
On Thursday 11 January 2001 00:19, Alexandre Julliard wrote:
> First, as already mentioned here, you cannot access %esp from inline
> assembly and hope to have it point to something specific, gcc is free
> to manage the stack however it wants. Also you should really use the
> existing mechanisms from wine/exception.h, as well as register
> functions, instead of using inline assembly all over the place.
>
> If you need to call functions with a specific %ebp, you can write a
> small wrapper function (using __ASM_GLOBAL_FUNC) that does just that;
> but all the rest should be doable in C. Also note that setting %ebp
> before calling MSVCRT_local_unwind2 is useless, the first thing gcc
> will do in the function entry code is to change %ebp. If
> MSVCRT_local_unwind2 needs the %ebp value it has to be a register
> function.
--
"Once you realise you're not _meant_ to fit in, it all makes sense..."
[EMAIL PROTECTED] , [EMAIL PROTECTED]