Raise when attempting to use unimplemented classes. Check for null pointers

in more runtime functions (probably still many cases where we crash if null
pointers are passed to the API and Apple behave more tolrantly).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-02-13 06:31:05 +00:00
parent 873b26930a
commit 337be3cce0
6 changed files with 114 additions and 27 deletions

View file

@ -179,6 +179,14 @@ static NSMutableDictionary *allLocales = nil;
static NSDictionary *canonicalLocales = nil;
static NSRecursiveLock *classLock = nil;
#if GS_USE_ICU == 0
+ (id) allocWithZone: (NSZone*)z
{
[self notImplemented: _cmd
reason: @"missing ICU support at configure time."];
}
#endif
+ (void) initialize
{
if (self == [NSLocale class])