mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix creation of selectors.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12696 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4568e4bab9
commit
96f42ce2d8
2 changed files with 10 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-02-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSObjCRuntime.h: Fix error in last change ...
|
||||
GSSelectorFromName() should not create a new selector while
|
||||
HSSelectorFromNameAndTypes() should.
|
||||
|
||||
2002-02-22 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/gnustep/base/NSArray.h: insertion position api update.
|
||||
|
|
|
@ -202,7 +202,7 @@ GSNameFromSelector(SEL this)
|
|||
/**
|
||||
* Return a selector matching the specified name, or nil if no name is
|
||||
* supplied. The returned selector could be any one with the name.<br />
|
||||
* If no selector already exists, creates one.
|
||||
* If no selector exists, returns nil.
|
||||
*/
|
||||
FOUNDATION_STATIC_INLINE SEL
|
||||
GSSelectorFromName(const char *name)
|
||||
|
@ -213,20 +213,15 @@ GSSelectorFromName(const char *name)
|
|||
}
|
||||
else
|
||||
{
|
||||
SEL s = sel_get_any_uid(name);
|
||||
|
||||
if (s == 0)
|
||||
{
|
||||
s = sel_get_uid(name);
|
||||
}
|
||||
return s;
|
||||
return sel_get_any_uid(name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the selector for the specified name and types. Returns a nul
|
||||
* pointer if the name is nul. Uses any available selector if the types
|
||||
* argument is nul. Creates a new selector if necessary.
|
||||
* argument is nul. <br />
|
||||
* Creates a new selector if necessary.
|
||||
*/
|
||||
FOUNDATION_STATIC_INLINE SEL
|
||||
GSSelectorFromNameAndTypes(const char *name, const char *types)
|
||||
|
|
Loading…
Reference in a new issue