|
From: Soren A. <so...@wo...> - 2001-01-07 17:11:24
|
Hello,
Please, I think somebody on this List knows how this might work ..
I have a Perl module written by a fellow who has only built it using M$
tools. It uses _asm{ stuff .. } and the gcc preprocessor chokes on it. I have
taken a look at the manual for gcc and I don't think gcc supports this, but
does support certain uses of `asm'. First of all, I don't know what the M$C
syntax is doing, precisely. If I understood why they get away with using the
curly braces but gcc users cannot, and what an equivalent way of doing such
code in gcc might by, I think I could fix up this module (Win32::API) with
protective #defines and make a contribution. The first instance in the xs file
(that generated the C file when make is run) of this problem is pasted here:
---- code -- watch for wrapping ---
void AbstractCallback() {
LPBYTE self;
_asm {
pop eax
mov dword ptr self, eax
}
printf("AbstractCallback: got eax=%ld\n", self);
}
---- end code ----------------------
Looking forward to help on this.
soren
|