Use GSSelectorTypesMatch() for types comparison where we are interested in types

but not qualifiers and stack layout information.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-07-20 04:43:58 +00:00
parent be9d4f89fe
commit 1c8f36b122
7 changed files with 47 additions and 17 deletions

View file

@ -98,13 +98,15 @@
{
[NSException raise: NSInvalidArgumentException
format: @"<%s -%@> not declared",
protocol_getName(_myProtocol), NSStringFromSelector([anInvocation selector])];
protocol_getName(_myProtocol),
NSStringFromSelector([anInvocation selector])];
}
else
{
[NSException raise: NSInvalidArgumentException
format: @"<%s +%@> not declared",
protocol_getName(_myProtocol), NSStringFromSelector([anInvocation selector])];
protocol_getName(_myProtocol),
NSStringFromSelector([anInvocation selector])];
}
}
[anInvocation invokeWithTarget: _myTarget];
@ -114,7 +116,7 @@
* returned value with the protocol checker.
*/
type = [[anInvocation methodSignature] methodReturnType];
if (strcmp(type, @encode(id)) == 0)
if (GSSelectorTypesMatch(type, @encode(id)))
{
id buf;