mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
*** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3042 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
239a1c59c8
commit
85c38deb08
1 changed files with 19 additions and 6 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSUtilities.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSPortCoder.h>
|
||||
#include <gnustep/base/Coding.h>
|
||||
|
||||
#include <gnustep/base/fast.x>
|
||||
|
@ -155,12 +156,24 @@ myEqual(NSObject *self, NSObject *other)
|
|||
at: &count
|
||||
withName: @"Dictionary content count"];
|
||||
|
||||
while (node != 0) {
|
||||
[(id<Encoding>)aCoder encodeObject: node->key.o
|
||||
withName: @"Dictionary key"];
|
||||
[(id<Encoding>)aCoder encodeObject: node->value.o
|
||||
withName: @"Dictionary content"];
|
||||
node = node->nextInMap;
|
||||
if ([aCoder isKindOfClass: [NSPortCoder class]] &&
|
||||
[(NSPortCoder*)aCoder isBycopy]) {
|
||||
while (node != 0) {
|
||||
[(id<Encoding>)aCoder encodeBycopyObject: node->key.o
|
||||
withName: @"Dictionary key"];
|
||||
[(id<Encoding>)aCoder encodeBycopyObject: node->value.o
|
||||
withName: @"Dictionary content"];
|
||||
node = node->nextInMap;
|
||||
}
|
||||
}
|
||||
else {
|
||||
while (node != 0) {
|
||||
[(id<Encoding>)aCoder encodeObject: node->key.o
|
||||
withName: @"Dictionary key"];
|
||||
[(id<Encoding>)aCoder encodeObject: node->value.o
|
||||
withName: @"Dictionary content"];
|
||||
node = node->nextInMap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue