Merged 1.0 branch into main.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-04-10 03:27:01 +00:00
parent d2dd19d498
commit ab320f7bb0
42 changed files with 1313 additions and 514 deletions

View file

@ -756,14 +756,29 @@ static BOOL deallocNotifications = NO;
const char *types;
struct objc_method *mth;
if (aSelector == 0)
{
return nil;
}
mth = (GSObjCIsInstance(self)
? class_get_instance_method(GSObjCClass(self), aSelector)
: class_get_class_method(GSObjCClass(self), aSelector));
if (mth == 0)
{
types = 0;
}
else
{
types = mth->method_types;
}
if (types == 0)
{
types = aSelector->sel_types;
}
if (types == 0)
{
return nil;
}
types = mth->method_types;
return [NSMethodSignature signatureWithObjCTypes: types];
}