Convert to new Coder scheme. Use -initWithCoder instead

of +newWithCoder where appropriate.  Remove arguments typed
(Coder*).  Replace +_newCollectionWithCoder with
-_initCollectionWithCoder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@333 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-04-09 01:53:53 +00:00
parent 496bde0f95
commit 3b43be1a80
29 changed files with 257 additions and 211 deletions

View file

@ -1,5 +1,5 @@
/* Implementation for Objective-C RBTreeNode objects
Copyright (C) 1993,1994 Free Software Foundation, Inc.
Copyright (C) 1993,1994, 1995 Free Software Foundation, Inc.
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
Date: May 1993
@ -38,17 +38,17 @@
return self;
}
- (void) encodeWithCoder: (Coder*)aCoder
- (void) encodeWithCoder: aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeValueOfType:@encode(BOOL) at:&_red withName:"RBTreeNode isRed"];
}
+ newWithCoder: (Coder*)aCoder
- initWithCoder: aCoder
{
RBTreeNode *n = [super newWithCoder:aCoder];
[aCoder decodeValueOfType:@encode(BOOL) at:&(n->_red) withName:NULL];
return n;
[self initWithCoder:aCoder];
[aCoder decodeValueOfType:@encode(BOOL) at:&_red withName:NULL];
return self;
}
- write: (TypedStream*)aStream