Differences From Artifact [cc0c7b76c2]:
- File
src/OFEnumerator.m
— part of check-in
[7214a2c7af]
at
2019-06-19 00:45:05
on branch trunk
— OFEnumerator: Remove -[reset]
It's not very useful and is a problem for the Foundation bridge, as
NSEnumerator does not have it. (user: js, size: 1276) [annotate] [blame] [check-ins using]
To Artifact [125e27ae6a]:
- File src/OFEnumerator.m — part of check-in [f18b5db636] at 2019-06-19 00:54:33 on branch trunk — OFEnumerator: Conform to OFFastEnumeration (user: js, size: 1631) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
54 55 56 57 58 59 60 61 | [ret makeImmutable]; objc_autoreleasePoolPop(pool); return ret; } @end | > > > > > > > > > > > > > > > > > > > > > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | [ret makeImmutable]; objc_autoreleasePoolPop(pool); return ret; } - (int)countByEnumeratingWithState: (of_fast_enumeration_state_t *)state objects: (id *)objects count: (int)count { int i; state->itemsPtr = objects; state->mutationsPtr = (unsigned long *)self; for (i = 0; i < count; i++) { id object = [self nextObject]; if (object == nil) return i; objects[i] = object; } return i; } @end |