mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
revrt archiving changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29877 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
42db2fdf50
commit
9364b39deb
6 changed files with 28 additions and 28 deletions
|
@ -199,13 +199,13 @@ static Class mutableSetClass;
|
|||
}
|
||||
else
|
||||
{
|
||||
NSUInteger count = map.nodeCount;
|
||||
unsigned count = map.nodeCount;
|
||||
SEL sel = @selector(encodeObject:);
|
||||
IMP imp = [aCoder methodForSelector: sel];
|
||||
GSIMapEnumerator_t enumerator = GSIMapEnumeratorForMap(&map);
|
||||
GSIMapNode node = GSIMapEnumeratorNextNode(&enumerator);
|
||||
|
||||
[aCoder encodeValueOfObjCType: @encode(NSUInteger) at: &count];
|
||||
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &count];
|
||||
while (node != 0)
|
||||
{
|
||||
(*imp)(aCoder, sel, node->key.obj);
|
||||
|
@ -233,13 +233,13 @@ static Class mutableSetClass;
|
|||
}
|
||||
else
|
||||
{
|
||||
NSUInteger count;
|
||||
unsigned count;
|
||||
id value;
|
||||
SEL sel = @selector(decodeValueOfObjCType:at:);
|
||||
IMP imp = [aCoder methodForSelector: sel];
|
||||
const char *type = @encode(id);
|
||||
|
||||
(*imp)(aCoder, sel, @encode(NSUInteger), &count);
|
||||
(*imp)(aCoder, sel, @encode(unsigned), &count);
|
||||
|
||||
GSIMapInitWithZoneAndCapacity(&map, [self zone], count);
|
||||
while (count-- > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue