Differences From Artifact [86829d5175]:
- File
src/OFBlock.m
— part of check-in
[4285aea3c6]
at
2010-11-12 16:00:09
on branch trunk
— Always use our _Block_copy.
The reason is that the _Block_copy from libSystem references the wrong
_NSConcreteMallocBlock. (user: js, size: 9283) [annotate] [blame] [check-ins using]
To Artifact [f036063ec4]:
- File src/OFBlock.m — part of check-in [38bde7146a] at 2010-11-12 19:36:09 on branch trunk — Ensure OF{Stack,Global,Malloc}Block get initialized. (user: js, size: 9808) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | selector: _cmd]; [super dealloc]; /* Get rid of a stupid warning */ } @end #if defined(OF_APPLE_RUNTIME) && defined(__OBJC2__) @implementation OFStackBlock @end @implementation OFGlobalBlock @end @implementation OFMallocBlock @end #endif /// \endcond | > > > > > > > > > > > > > > > > > > > > > > > > | 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | selector: _cmd]; [super dealloc]; /* Get rid of a stupid warning */ } @end #if defined(OF_APPLE_RUNTIME) && defined(__OBJC2__) @implementation OFStackBlock + (void)load { /* * Send a message to the class to ensure it's initialized. Otherwise it * it might not get initialized as blocks are preallocated. */ [self class]; } @end @implementation OFGlobalBlock + (void)load { /* * Send a message to the class to ensure it's initialized. Otherwise it * it might not get initialized as blocks are preallocated. */ [self class]; } @end @implementation OFMallocBlock + (void)load { /* * Send a message to the class to ensure it's initialized. Otherwise it * it might not get initialized as blocks are preallocated. */ [self class]; } @end #endif /// \endcond |