Fix a load of warnings from implicit function declarations. A lot were caused by ctype.h and string.h stuff being used everywhere in GNUstep but not included anywhere - they're now included in common.h (at least string.h should also be in Foundation.h - on OS X it is implicitly included via some chain of things from Foundation.h).

All of the sel_* stuff is now replaced with the newer APIs.  As a side-effect, a blob of code that was copied-and-pasted all over GNUstep has now been moved into ObjectiveC2 and just called.

Class posing with libobjc2 will now throw an exception, rather than just aborting.  



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31268 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2010-09-09 16:30:10 +00:00
parent 5ad0e5323c
commit f392469c64
11 changed files with 49 additions and 79 deletions

View file

@ -811,7 +811,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
notification = [NSNotification notificationWithName: name
object: object
userInfo: userInfo];
[recipient performSelector: sel_get_any_typed_uid([aSelector cString])
[recipient performSelector: sel_registerTypedName_np([aSelector cString], 0)
withObject: notification];
}