@@ -25,10 +25,12 @@ #import "OFString_UTF8.h" #import "OFInitializationFailedException.h" #import "OFInvalidEncodingException.h" #import "OFOutOfMemoryException.h" + +#import "macros.h" #if defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__) # import struct { @@ -48,47 +50,41 @@ @end @implementation OFString_const + alloc { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)allocMemoryWithSize: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)allocMemoryWithSize: (size_t)size count: (size_t)count { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)resizeMemory: (void*)pointer size: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)resizeMemory: (void*)pointer size: (size_t)size count: (size_t)count { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void)freeMemory: (void*)pointer { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - retain { return self; @@ -108,12 +104,11 @@ { } - (void)dealloc { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR /* Get rid of a stupid warning */ [super dealloc]; } @end @@ -175,46 +170,40 @@ } } + alloc { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)allocMemoryWithSize: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)allocMemoryWithSize: (size_t)size count: (size_t)count { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)resizeMemory: (void*)pointer size: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)resizeMemory: (void*)pointer size: (size_t)size count: (size_t)count { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void)freeMemory: (void*)pointer { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - retain { return self; @@ -234,12 +223,11 @@ { } - (void)dealloc { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR /* Get rid of a stupid warning */ [super dealloc]; }