mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fixup to get proxies working again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31275 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c342978801
commit
46076fe15b
2 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
2010-09-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSString.m: Fix retain/release bugs spotted by clang.
|
||||
* Source/GSFFIInvocation.m: Revert one line in order to get lookup
|
||||
of types working again so that proxies can still be used.
|
||||
|
||||
2010-09-10 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
|
|
|
@ -90,6 +90,12 @@ gs_method_for_receiver_and_selector (id receiver, SEL sel)
|
|||
* return types between all equivalent selectors.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Find the best selector type information we can when we don't know
|
||||
* the receiver (unfortunately most installed gcc/objc systems still
|
||||
* (2010) don't let us know the receiver when forwarding). This can
|
||||
* never be more than a guess, but in practice it usually works.
|
||||
*/
|
||||
static INLINE SEL
|
||||
gs_find_best_typed_sel (SEL sel)
|
||||
{
|
||||
|
@ -99,7 +105,7 @@ gs_find_best_typed_sel (SEL sel)
|
|||
|
||||
if (name)
|
||||
{
|
||||
SEL tmp_sel = sel_getUid(name);
|
||||
SEL tmp_sel = sel_get_any_typed_uid(name);
|
||||
if (sel_getType_np(tmp_sel))
|
||||
return tmp_sel;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue