([Enumerator -nextObject]): Pass pointer to ENUM_STATE.

([Enumerator -dealloc]): Likewise.
([ConstantCollection -detectObjectByInvoking:]): Use -returnValueIsTrue.
([ConstantCollection -printForDebugger]): Use object_get_class_name
instead of -name because -name is now ambiguously typed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1032 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-03 00:33:24 +00:00
parent c5f461d3a3
commit a7cfff726b

View file

@ -40,12 +40,12 @@
- nextObject
{
return [collection nextObjectWithEnumState: enum_state];
return [collection nextObjectWithEnumState: &enum_state];
}
- (void) dealloc
{
[collection freeEnumState: enum_state];
[collection freeEnumState: &enum_state];
[collection release];
}
@ -305,7 +305,8 @@
FOR_COLLECTION_WHILE_TRUE(self, o, flag)
{
if ([anInvocation invokeWithObject: o])
[anInvocation invokeWithObject: o];
if ([anInvocation returnValueIsTrue])
{
flag = NO;
detectedObject = o;
@ -593,7 +594,7 @@
printf("%s ", [[o description] cStringNoCopy]);
}
END_FOR_COLLECTION(self);
printf(": %s\n", [self name]);
printf(": %s\n", object_get_class_name (self));
return self;
}