Patches submitted from May 20 to Aug 28 1997

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2406 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1997-09-01 21:59:51 +00:00
parent 7b12c4af23
commit a57d791f91
119 changed files with 16409 additions and 1698 deletions

View file

@ -93,9 +93,13 @@ static BOOL debug_coder = NO;
- init
{
/* Or should we provide some kind of default? */
[self shouldNotImplement:_cmd];
return self;
if ([self class] == [Coder class])
{
[self shouldNotImplement:_cmd];
return nil;
}
else
return [super init];
}
/* We must separate the idea of "closing" a coder and "deallocating"
@ -262,7 +266,10 @@ static BOOL debug_coder = NO;
- (id) initForReadingWithData: (NSData*)data
{
id ret = [[self class] newReadingFromStream: data];
[self release];
if ([self retainCount] == 0)
[ret autorelease];
else
[self release];
return ret;
}