Differences From Artifact [35aae4e27a]:
- File
src/OFSet.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 8395) [annotate] [blame] [check-ins using]
To Artifact [e875ac7884]:
- File src/OFSet.m — part of check-in [d1a7509701] at 2013-05-04 12:04:23 on branch trunk — OFSet: Add -[allObjects] and -[anyObject]. (user: js, size: 8768) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
449 450 451 452 453 454 455 456 457 458 459 460 461 462 | new = [[self mutableCopy] autorelease]; [new unionSet: set]; [new makeImmutable]; return new; } #if defined(OF_HAVE_BLOCKS) && defined(OF_HAVE_FAST_ENUMERATION) - (void)enumerateObjectsUsingBlock: (of_set_enumeration_block_t)block { bool stop = false; for (id object in self) { | > > > > > > > > > > > > > > > > > > | 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 | new = [[self mutableCopy] autorelease]; [new unionSet: set]; [new makeImmutable]; return new; } - (OFArray*)allObjects { void *pool = objc_autoreleasePoolPush(); OFArray *ret = [[[self objectEnumerator] allObjects] retain]; objc_autoreleasePoolPop(pool); return [ret autorelease]; } - (id)anyObject { void *pool = objc_autoreleasePoolPush(); id ret = [[[self objectEnumerator] nextObject] retain]; objc_autoreleasePoolPop(pool); return [ret autorelease]; } #if defined(OF_HAVE_BLOCKS) && defined(OF_HAVE_FAST_ENUMERATION) - (void)enumerateObjectsUsingBlock: (of_set_enumeration_block_t)block { bool stop = false; for (id object in self) { |
︙ | ︙ |