Differences From Artifact [90b4a8e14a]:
- File
src/OFBlock.m
— part of check-in
[2bedfac177]
at
2012-11-20 20:40:08
on branch trunk
— OFBlock: Make use of objc_initializeClassPair().
This way, we don't need the mach_alias_list anymore. (user: js, size: 11835) [annotate] [blame] [check-ins using]
To Artifact [68b4ea5979]:
- File src/OFBlock.m — part of check-in [917ce5754c] at 2012-12-22 15:37:19 on branch trunk — Add -[doesNotRecognizeSelector:]. (user: js, size: 11509) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
26 27 28 29 30 31 32 | # import <objc/runtime.h> #endif #import "OFBlock.h" #import "OFAllocFailedException.h" #import "OFInitializationFailedException.h" | < | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # import <objc/runtime.h> #endif #import "OFBlock.h" #import "OFAllocFailedException.h" #import "OFInitializationFailedException.h" #import "macros.h" #ifdef OF_ATOMIC_OPS # import "atomic.h" #endif #ifdef OF_THREADS # import "threading.h" |
︙ | ︙ | |||
385 386 387 388 389 390 391 | @throw [OFInitializationFailedException exceptionWithClass: self]; } #endif + alloc { | < | > | | > > > > > < | > < | > < | > < | > < | > | 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 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 | @throw [OFInitializationFailedException exceptionWithClass: self]; } #endif + alloc { [self doesNotRecognizeSelector: _cmd]; abort(); } - init { @try { [self doesNotRecognizeSelector: _cmd]; abort(); } @catch (id e) { [self release]; @throw e; } } - (void*)allocMemoryWithSize: (size_t)size { [self doesNotRecognizeSelector: _cmd]; abort(); } - (void*)allocMemoryWithSize: (size_t)size count: (size_t)count { [self doesNotRecognizeSelector: _cmd]; abort(); } - (void*)resizeMemory: (void*)ptr size: (size_t)size { [self doesNotRecognizeSelector: _cmd]; abort(); } - (void*)resizeMemory: (void*)ptr size: (size_t)size count: (size_t)count { [self doesNotRecognizeSelector: _cmd]; abort(); } - (void)freeMemory: (void*)ptr { [self doesNotRecognizeSelector: _cmd]; abort(); } - retain { if (object_getClass(self) == (Class)&_NSConcreteMallocBlock) return Block_copy(self); |
︙ | ︙ | |||
467 468 469 470 471 472 473 | { if (object_getClass(self) == (Class)&_NSConcreteMallocBlock) Block_release(self); } - (void)dealloc { | | > | | > | 471 472 473 474 475 476 477 478 479 480 481 482 483 484 | { if (object_getClass(self) == (Class)&_NSConcreteMallocBlock) Block_release(self); } - (void)dealloc { [self doesNotRecognizeSelector: _cmd]; abort(); /* Get rid of a stupid warning */ [super dealloc]; } @end |