Index: src/OFConstString.m ================================================================== --- src/OFConstString.m +++ src/OFConstString.m @@ -25,31 +25,71 @@ objc_setFutureClass((Class)&_OFConstStringClassReference, "OFConstString"); } #endif -- autorelease +- addMemoryToPool: (void*)ptr +{ + @throw [OFNotImplementedException newWithClass: isa + andSelector: _cmd]; +} + +- (void*)allocMemoryWithSize: (size_t)size +{ + @throw [OFNotImplementedException newWithClass: isa + andSelector: _cmd]; +} + +- (void*)allocMemoryForNItems: (size_t)nitems + withSize: (size_t)size +{ + @throw [OFNotImplementedException newWithClass: isa + andSelector: _cmd]; +} + +- (void*)resizeMemory: (void*)ptr + toSize: (size_t)size +{ + @throw [OFNotImplementedException newWithClass: isa + andSelector: _cmd]; +} + +- (void*)resizeMemory: (void*)ptr + toNItems: (size_t)nitems + withSize: (size_t)size +{ + @throw [OFNotImplementedException newWithClass: isa + andSelector: _cmd]; +} + +- freeMemory: (void*)ptr { - return self; + @throw [OFNotImplementedException newWithClass: isa + andSelector: _cmd]; } - retain { return self; } -- (void)release +- autorelease { + return self; } - (size_t)retainCount { return SIZE_MAX; } + +- (void)release +{ +} - (void)dealloc { @throw [OFNotImplementedException newWithClass: isa andSelector: _cmd]; [super dealloc]; /* Get rid of stupid warning */ } @end