354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
[ret appendString: [iter->object description]];
if (iter->next != NULL)
[ret appendString: @",\n"];
objc_autoreleasePoolPop(pool);
}
[ret replaceOccurrencesOfString: @"\n"
withString: @"\n\t"];
[ret appendString: @"\n]"];
[ret makeImmutable];
return ret;
}
|
|
<
|
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
|
[ret appendString: [iter->object description]];
if (iter->next != NULL)
[ret appendString: @",\n"];
objc_autoreleasePoolPop(pool);
}
[ret replaceOccurrencesOfString: @"\n" withString: @"\n\t"];
[ret appendString: @"\n]"];
[ret makeImmutable];
return ret;
}
|
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
|
memcpy(state->extra, &listObject, sizeof(listObject));
return count;
}
- (OFEnumerator *)objectEnumerator
{
return [[[OFListEnumerator alloc]
initWithList: self
mutationsPointer: &_mutations] autorelease];
}
@end
@implementation OFListEnumerator
- (instancetype)initWithList: (OFList *)list
mutationsPointer: (unsigned long *)mutationsPtr
{
|
|
<
|
>
|
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
|
memcpy(state->extra, &listObject, sizeof(listObject));
return count;
}
- (OFEnumerator *)objectEnumerator
{
return [[[OFListEnumerator alloc] initWithList: self
mutationsPointer: &_mutations]
autorelease];
}
@end
@implementation OFListEnumerator
- (instancetype)initWithList: (OFList *)list
mutationsPointer: (unsigned long *)mutationsPtr
{
|