Differences From Artifact [1c467efbfe]:
- File
src/OFMutableArray_adjacent.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: 7834) [annotate] [blame] [check-ins using]
To Artifact [4bdaba029a]:
- File
src/OFMutableArray_adjacent.m
— part of check-in
[e8473b9db8]
at
2013-03-08 22:44:07
on branch trunk
— Document the block types.
This also removes "bool *stop" from some blocks where it does not make
sense. (user: js, size: 7794) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
348 349 350 351 352 353 354 | } } - (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block { id *objects = [_array items]; size_t i, count = [_array count]; | < | | | | | | | > | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 | } } - (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block { id *objects = [_array items]; size_t i, count = [_array count]; unsigned long mutations = _mutations; for (i = 0; i < count; i++) { id new; if (_mutations != mutations) @throw [OFEnumerationMutationException exceptionWithClass: [self class] object: self]; new = block(objects[i], i); if (new == nil) @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; if (new != objects[i]) { [objects[i] release]; objects[i] = [new retain]; } } } #endif - (void)makeImmutable { object_setClass(self, [OFArray_adjacent class]); } @end |