discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MulleEOInterface


From: Dirk Lattermann
Subject: Re: MulleEOInterface
Date: Tue, 27 May 2003 20:21:53 +0200
User-agent: Mutt/1.4i

On Mon, May 26, 2003 at 11:46:42AM +0200, David Ayers wrote:
> >>
> >> objc_msgSend([objects objectAtIndex: i], selector, argument)
> >>
> 
> Hi Dirk,
> 
> Would you please chect if,
> #ifdef GNUSTEP
> #include <gnustep/base/objc-gnu2next.h>
> #endif
> 
> would do the trick?
> I haven't looked into which runtime functions are used expilictily, but 
> this header should do the mapping. for most.
> 

Unfortunately, this doesn't work.  objc_msgSend is nowhere to be found
in the header file.

> But please check whether class_getClassMethod is used anywhere.  
> Eventhough a maping exists, the parameters, that the two runtimes expect 
> are different.  I haven't had time to finish up my GSObjCRuntime patch 
> yet, withi which I also wanted to submit a patch to this header to 
> remove the mapping.
> 
> Also check whether the code ever does selector comparison with == as 
> this is at the least unsafe for the GNU runtime.  You should replace 
> them with sel_eq(). But then you would probably need something like:
> 
> #ifdef GNUSTEP
> #include <gnustep/base/objc-gnu2next.h>
> #else
> #define sel_eq(sel1,sel2) (sel1 == sel2)
> #endif
> 
This time, these things aren't needed.  There's just a plain message
call.

Cheers,
Dirk (Lattermann)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]