mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
779629a90d
commit
0dc629b0ae
29 changed files with 257 additions and 211 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Implementation for Objective-C LinkedListNode object
|
||||
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
|
||||
|
@ -39,19 +39,19 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (Coder*)aCoder
|
||||
- (void) encodeWithCoder: aCoder
|
||||
{
|
||||
[super encodeWithCoder:aCoder];
|
||||
[aCoder encodeObjectReference:_next withName:"Next LinkedList Node"];
|
||||
[aCoder encodeObjectReference:_prev withName:"Prev LinkedList Node"];
|
||||
}
|
||||
|
||||
+ newWithCoder: (Coder*)aCoder
|
||||
- initWithCoder: aCoder
|
||||
{
|
||||
LinkedListNode *n = [super newWithCoder:aCoder];
|
||||
[aCoder decodeObjectAt:&(n->_next) withName:NULL];
|
||||
[aCoder decodeObjectAt:&(n->_prev) withName:NULL];
|
||||
return n;
|
||||
[super initWithCoder:aCoder];
|
||||
[aCoder decodeObjectAt:&_next withName:NULL];
|
||||
[aCoder decodeObjectAt:&_prev withName:NULL];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id <LinkedListComprising>) nextLink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue