Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add OF_UNRECOGNIZED_SELECTOR. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
6e19bd47eec53ac297ed5d7517142ccf |
| User & Date: | js 2013-11-23 01:27:40.000 |
Context
|
2013-11-23
| ||
| 01:38 | Add OF_ROOT_CLASS. check-in: 48df0f966f user: js tags: trunk | |
| 01:27 | Add OF_UNRECOGNIZED_SELECTOR. check-in: 6e19bd47ee user: js tags: trunk | |
| 01:14 | Add OF_REQUIRES_SUPER. check-in: 3ab5dace83 user: js tags: trunk | |
Changes
Changes to src/OFArray.m.
| ︙ | ︙ | |||
102 103 104 105 106 107 108 |
- (void)release
{
}
- (void)dealloc
{
| | < | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFArray
|
| ︙ | ︙ | |||
223 224 225 226 227 228 229 |
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (size_t)count
{
| | < | 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)getObjects: (id*)buffer
inRange: (of_range_t)range
{
size_t i;
|
| ︙ | ︙ | |||
265 266 267 268 269 270 271 |
- mutableCopy
{
return [[OFMutableArray alloc] initWithArray: self];
}
- (id)objectAtIndex: (size_t)index
{
| | < | 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
- mutableCopy
{
return [[OFMutableArray alloc] initWithArray: self];
}
- (id)objectAtIndex: (size_t)index
{
OF_UNRECOGNIZED_SELECTOR
}
- (id)objectAtIndexedSubscript: (size_t)index
{
return [self objectAtIndex: index];
}
|
| ︙ | ︙ |
Changes to src/OFAutoreleasePool.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "OFAutoreleasePool.h" #import "OFAutoreleasePool+Private.h" #import "macros.h" #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) # import "threading.h" |
| ︙ | ︙ | |||
178 179 180 181 182 183 184 |
}
[super dealloc];
}
- retain
{
| | < | < | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
}
[super dealloc];
}
- retain
{
OF_UNRECOGNIZED_SELECTOR
}
- autorelease
{
OF_UNRECOGNIZED_SELECTOR
}
@end
|
Changes to src/OFBlock.m.
| ︙ | ︙ | |||
382 383 384 385 386 387 388 |
objc_registerClassPair((Class)&_NSConcreteMallocBlock);
# endif
#endif
}
+ alloc
{
| | < | < | < | < | < | < | 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 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
objc_registerClassPair((Class)&_NSConcreteMallocBlock);
# endif
#endif
}
+ alloc
{
OF_UNRECOGNIZED_SELECTOR
}
- init
{
OF_INVALID_INIT_METHOD
}
- (void*)allocMemoryWithSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)allocMemoryWithSize: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)ptr
size: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)ptr
size: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)freeMemory: (void*)ptr
{
OF_UNRECOGNIZED_SELECTOR
}
- retain
{
if (object_getClass(self) == (Class)&_NSConcreteMallocBlock)
return Block_copy(self);
|
| ︙ | ︙ | |||
463 464 465 466 467 468 469 |
{
if (object_getClass(self) == (Class)&_NSConcreteMallocBlock)
Block_release(self);
}
- (void)dealloc
{
| | < | 457 458 459 460 461 462 463 464 465 466 467 468 469 |
{
if (object_getClass(self) == (Class)&_NSConcreteMallocBlock)
Block_release(self);
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
|
Changes to src/OFConstantString.m.
| ︙ | ︙ | |||
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#import "OFConstantString.h"
#import "OFString_UTF8.h"
#import "OFInitializationFailedException.h"
#import "OFInvalidEncodingException.h"
#import "OFOutOfMemoryException.h"
#if defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__)
# import <objc/runtime.h>
struct {
struct class *isa, *super_class;
const char *name;
| > > | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#import "OFConstantString.h"
#import "OFString_UTF8.h"
#import "OFInitializationFailedException.h"
#import "OFInvalidEncodingException.h"
#import "OFOutOfMemoryException.h"
#import "macros.h"
#if defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__)
# import <objc/runtime.h>
struct {
struct class *isa, *super_class;
const char *name;
|
| ︙ | ︙ | |||
46 47 48 49 50 51 52 |
@interface OFString_const: OFString_UTF8
@end
@implementation OFString_const
+ alloc
{
| | < | < | < | < | < | < | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
@interface OFString_const: OFString_UTF8
@end
@implementation OFString_const
+ alloc
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)allocMemoryWithSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)allocMemoryWithSize: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)pointer
size: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)pointer
size: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)freeMemory: (void*)pointer
{
OF_UNRECOGNIZED_SELECTOR
}
- retain
{
return self;
}
|
| ︙ | ︙ | |||
106 107 108 109 110 111 112 |
- (void)release
{
}
- (void)dealloc
{
| | < | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFConstantString
|
| ︙ | ︙ | |||
173 174 175 176 177 178 179 |
_cString = (char*)ivars;
object_setClass(self, [OFString_const class]);
}
}
+ alloc
{
| | < | < | < | < | < | < | 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
_cString = (char*)ivars;
object_setClass(self, [OFString_const class]);
}
}
+ alloc
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)allocMemoryWithSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)allocMemoryWithSize: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)pointer
size: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)pointer
size: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)freeMemory: (void*)pointer
{
OF_UNRECOGNIZED_SELECTOR
}
- retain
{
return self;
}
|
| ︙ | ︙ | |||
232 233 234 235 236 237 238 |
- (void)release
{
}
- (void)dealloc
{
| | < | 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
/*
* In all following methods, the constant string is converted to an
|
| ︙ | ︙ |
Changes to src/OFCountedSet.m.
| ︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#import "OFCountedSet.h"
#import "OFCountedSet_hashtable.h"
#import "OFNumber.h"
#import "OFString.h"
#import "OFXMLElement.h"
#import "autorelease.h"
static struct {
Class isa;
} placeholder;
@interface OFCountedSet_placeholder: OFCountedSet
@end
| > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#import "OFCountedSet.h"
#import "OFCountedSet_hashtable.h"
#import "OFNumber.h"
#import "OFString.h"
#import "OFXMLElement.h"
#import "autorelease.h"
#import "macros.h"
static struct {
Class isa;
} placeholder;
@interface OFCountedSet_placeholder: OFCountedSet
@end
|
| ︙ | ︙ | |||
94 95 96 97 98 99 100 |
- (void)release
{
}
- (void)dealloc
{
| | < | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFCountedSet
|
| ︙ | ︙ | |||
135 136 137 138 139 140 141 |
}
return [super init];
}
- (size_t)countForObject: (id)object
{
| | < | 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
}
return [super init];
}
- (size_t)countForObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (OFString*)description
{
OFMutableString *ret;
void *pool;
OFEnumerator *enumerator;
|
| ︙ | ︙ |
Changes to src/OFDictionary.m.
| ︙ | ︙ | |||
113 114 115 116 117 118 119 |
- (void)release
{
}
- (void)dealloc
{
| | < | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFDictionary
|
| ︙ | ︙ | |||
269 270 271 272 273 274 275 |
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (id)objectForKey: (id)key
{
| | < | < | 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (id)objectForKey: (id)key
{
OF_UNRECOGNIZED_SELECTOR
}
- (id)objectForKeyedSubscript: (id)key
{
return [self objectForKey: key];
}
- (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- copy
{
return [self retain];
}
|
| ︙ | ︙ | |||
411 412 413 414 415 416 417 |
objc_autoreleasePoolPop(pool);
return ret;
}
- (OFEnumerator*)objectEnumerator
{
| | < | < | < | 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 |
objc_autoreleasePoolPop(pool);
return ret;
}
- (OFEnumerator*)objectEnumerator
{
OF_UNRECOGNIZED_SELECTOR
}
- (OFEnumerator*)keyEnumerator
{
OF_UNRECOGNIZED_SELECTOR
}
- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
objects: (id*)objects
count: (int)count_
{
OF_UNRECOGNIZED_SELECTOR
}
#if defined(OF_HAVE_BLOCKS) && defined(OF_HAVE_FAST_ENUMERATION)
- (void)enumerateKeysAndObjectsUsingBlock:
(of_dictionary_enumeration_block_t)block
{
bool stop = false;
|
| ︙ | ︙ |
Changes to src/OFEnumerator.m.
| ︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
#include <stdlib.h>
#import "OFEnumerator.h"
#import "OFArray.h"
#import "autorelease.h"
@implementation OFEnumerator
- init
{
if (object_getClass(self) == [OFEnumerator class]) {
@try {
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
}
}
return [super init];
}
- (id)nextObject
{
| > | < | < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
#include <stdlib.h>
#import "OFEnumerator.h"
#import "OFArray.h"
#import "autorelease.h"
#import "macros.h"
@implementation OFEnumerator
- init
{
if (object_getClass(self) == [OFEnumerator class]) {
@try {
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
}
}
return [super init];
}
- (id)nextObject
{
OF_UNRECOGNIZED_SELECTOR
}
- (OFArray*)allObjects
{
OFMutableArray *ret = [OFMutableArray array];
void *pool = objc_autoreleasePoolPush();
id object;
while ((object = [self nextObject]) != nil)
[ret addObject: object];
[ret makeImmutable];
objc_autoreleasePoolPop(pool);
return ret;
}
- (void)reset
{
OF_UNRECOGNIZED_SELECTOR
}
@end
|
Changes to src/OFMapTable.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #include <string.h> #include <assert.h> #import "OFMapTable.h" #import "OFEnumerator.h" |
| ︙ | ︙ | |||
696 697 698 699 700 701 702 |
[_mapTable release];
[super dealloc];
}
- (void*)nextValue
{
| | < | 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 |
[_mapTable release];
[super dealloc];
}
- (void*)nextValue
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)reset
{
if (*_mutationsPtr != _mutations)
@throw [OFEnumerationMutationException
exceptionWithObject: _mapTable];
|
| ︙ | ︙ |
Changes to src/OFMutableArray.m.
| ︙ | ︙ | |||
147 148 149 150 151 152 153 |
- (void)release
{
}
- (void)dealloc
{
| | < | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFMutableArray
|
| ︙ | ︙ | |||
215 216 217 218 219 220 221 |
[self insertObjectsFromArray: array
atIndex: [self count]];
}
- (void)insertObject: (id)object
atIndex: (size_t)index
{
| | < | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
[self insertObjectsFromArray: array
atIndex: [self count]];
}
- (void)insertObject: (id)object
atIndex: (size_t)index
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)insertObjectsFromArray: (OFArray*)array
atIndex: (size_t)index
{
void *pool = objc_autoreleasePoolPush();
OFEnumerator *enumerator = [array objectEnumerator];
|
| ︙ | ︙ | |||
241 242 243 244 245 246 247 |
objc_autoreleasePoolPop(pool);
}
- (void)replaceObjectAtIndex: (size_t)index
withObject: (id)object
{
| | < | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
objc_autoreleasePoolPop(pool);
}
- (void)replaceObjectAtIndex: (size_t)index
withObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)setObject: (id)object
atIndexedSubscript: (size_t)index
{
[self replaceObjectAtIndex: index
withObject: object];
|
| ︙ | ︙ | |||
293 294 295 296 297 298 299 |
return;
}
}
}
- (void)removeObjectAtIndex: (size_t)index
{
| | < | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 |
return;
}
}
}
- (void)removeObjectAtIndex: (size_t)index
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)removeObject: (id)object
{
size_t i, count;
if (object == nil)
|
| ︙ | ︙ |
Changes to src/OFMutableDictionary.m.
| ︙ | ︙ | |||
114 115 116 117 118 119 120 |
- (void)release
{
}
- (void)dealloc
{
| | < | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFMutableDictionary
|
| ︙ | ︙ | |||
166 167 168 169 170 171 172 |
{
OF_INVALID_INIT_METHOD
}
- (void)setObject: (id)object
forKey: (id)key
{
| | < | < | 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
{
OF_INVALID_INIT_METHOD
}
- (void)setObject: (id)object
forKey: (id)key
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)setObject: (id)object
forKeyedSubscript: (id)key
{
[self setObject: object
forKey: key];
}
- (void)removeObjectForKey: (id)key
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)removeAllObjects
{
void *pool = objc_autoreleasePoolPush();
OFArray *keys = [self allKeys];
OFEnumerator *enumerator = [keys objectEnumerator];
|
| ︙ | ︙ |
Changes to src/OFMutableSet.m.
| ︙ | ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#include <assert.h>
#import "OFMutableSet.h"
#import "OFMutableSet_hashtable.h"
#import "autorelease.h"
static struct {
Class isa;
} placeholder;
@interface OFMutableSet_placeholder: OFMutableSet
@end
| > | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#include <assert.h>
#import "OFMutableSet.h"
#import "OFMutableSet_hashtable.h"
#import "autorelease.h"
#import "macros.h"
static struct {
Class isa;
} placeholder;
@interface OFMutableSet_placeholder: OFMutableSet
@end
|
| ︙ | ︙ | |||
93 94 95 96 97 98 99 |
- (void)release
{
}
- (void)dealloc
{
| | < | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFMutableSet
|
| ︙ | ︙ | |||
133 134 135 136 137 138 139 |
}
return [super init];
}
- (void)addObject: (id)object
{
| | < | < | 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
}
return [super init];
}
- (void)addObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)removeObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)minusSet: (OFSet*)set
{
void *pool = objc_autoreleasePoolPush();
OFEnumerator *enumerator = [set objectEnumerator];
id object;
|
| ︙ | ︙ |
Changes to src/OFMutableString.m.
| ︙ | ︙ | |||
215 216 217 218 219 220 221 |
- (void)release
{
}
- (void)dealloc
{
| | < | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFMutableString
|
| ︙ | ︙ | |||
447 448 449 450 451 452 453 |
[self replaceCharactersInRange: range
withString: @""];
}
- (void)replaceCharactersInRange: (of_range_t)range
withString: (OFString*)replacement
{
| | < | 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 |
[self replaceCharactersInRange: range
withString: @""];
}
- (void)replaceCharactersInRange: (of_range_t)range
withString: (OFString*)replacement
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)replaceOccurrencesOfString: (OFString*)string
withString: (OFString*)replacement
{
[self replaceOccurrencesOfString: string
withString: replacement
|
| ︙ | ︙ |
Changes to src/OFNull.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < > | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "OFNull.h"
#import "OFString.h"
#import "OFXMLElement.h"
#import "OFDataArray.h"
#import "OFInvalidArgumentException.h"
#import "autorelease.h"
#import "macros.h"
static OFNull *null = nil;
@implementation OFNull
+ (void)initialize
{
null = [[self alloc] init];
|
| ︙ | ︙ | |||
115 116 117 118 119 120 121 |
- (unsigned int)retainCount
{
return OF_RETAIN_COUNT_MAX;
}
- (void)dealloc
{
| | < | 114 115 116 117 118 119 120 121 122 123 124 125 126 |
- (unsigned int)retainCount
{
return OF_RETAIN_COUNT_MAX;
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
|
Changes to src/OFObject.m.
| ︙ | ︙ | |||
1106 1107 1108 1109 1110 1111 1112 |
/*
* Those are needed as the root class is the superclass of the root class's
* metaclass and thus instance methods can be sent to class objects as well.
*/
+ (void*)allocMemoryWithSize: (size_t)size
{
| | < | < | < | < | < | 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
/*
* Those are needed as the root class is the superclass of the root class's
* metaclass and thus instance methods can be sent to class objects as well.
*/
+ (void*)allocMemoryWithSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
+ (void*)allocMemoryWithSize: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
+ (void*)resizeMemory: (void*)pointer
size: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
+ (void*)resizeMemory: (void*)pointer
size: (size_t)size
count: (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
+ (void)freeMemory: (void*)pointer
{
OF_UNRECOGNIZED_SELECTOR
}
+ retain
{
return self;
}
|
| ︙ | ︙ | |||
1159 1160 1161 1162 1163 1164 1165 |
+ (void)release
{
}
+ (void)dealloc
{
| | < | < | 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 |
+ (void)release
{
}
+ (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
}
+ copy
{
return self;
}
+ mutableCopyWithZone: (void*)zone
{
OF_UNRECOGNIZED_SELECTOR
}
@end
|
Changes to src/OFProcess.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #include <string.h> #ifndef _WIN32 # include <unistd.h> # include <signal.h> # include <sys/wait.h> #endif |
| ︙ | ︙ | |||
434 435 436 437 438 439 440 |
}
- (int)fileDescriptorForReading
{
#ifndef _WIN32
return _readPipe[0];
#else
| | < | < | 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 |
}
- (int)fileDescriptorForReading
{
#ifndef _WIN32
return _readPipe[0];
#else
OF_UNRECOGNIZED_SELECTOR
#endif
}
- (int)fileDescriptorForWriting
{
#ifndef _WIN32
return _writePipe[1];
#else
OF_UNRECOGNIZED_SELECTOR
#endif
}
- (void)closeForWriting
{
#ifndef _WIN32
if (_writePipe[1] != -1)
|
| ︙ | ︙ |
Changes to src/OFSeekableStream.m.
| ︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#import "OFSeekableStream.h"
@implementation OFSeekableStream
- init
{
if (object_getClass(self) == [OFSeekableStream class]) {
@try {
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
}
}
return [super init];
}
- (off_t)lowlevelSeekToOffset: (off_t)offset
whence: (int)whence
{
| > > | < | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#import "OFSeekableStream.h"
#import "macros.h"
@implementation OFSeekableStream
- init
{
if (object_getClass(self) == [OFSeekableStream class]) {
@try {
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
}
}
return [super init];
}
- (off_t)lowlevelSeekToOffset: (off_t)offset
whence: (int)whence
{
OF_UNRECOGNIZED_SELECTOR
}
- (off_t)seekToOffset: (off_t)offset
whence: (int)whence
{
if (whence == SEEK_CUR)
offset -= _readBufferLength;
|
| ︙ | ︙ |
Changes to src/OFSet.m.
| ︙ | ︙ | |||
94 95 96 97 98 99 100 |
- (void)release
{
}
- (void)dealloc
{
| | < | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFSet
|
| ︙ | ︙ | |||
210 211 212 213 214 215 216 |
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (size_t)count
{
| | < | < | < | < | 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (size_t)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (bool)containsObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (OFEnumerator*)objectEnumerator
{
OF_UNRECOGNIZED_SELECTOR
}
- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
objects: (id*)objects
count: (int)count
{
OF_UNRECOGNIZED_SELECTOR
}
- (bool)isEqual: (id)object
{
OFSet *otherSet;
if (![object isKindOfClass: [OFSet class]])
|
| ︙ | ︙ |
Changes to src/OFSortedList.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | | | | < | < | < | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "OFSortedList.h"
#import "macros.h"
@implementation OFSortedList
- (of_list_object_t*)appendObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (of_list_object_t*)prependObject: (id)object
{
OF_UNRECOGNIZED_SELECTOR
}
- (of_list_object_t*)insertObject: (id)object
beforeListObject: (of_list_object_t*)listObject
{
OF_UNRECOGNIZED_SELECTOR
}
- (of_list_object_t*)insertObject: (id)object
afterListObject: (of_list_object_t*)listObject
{
OF_UNRECOGNIZED_SELECTOR
}
- (of_list_object_t*)insertObject: (id <OFComparing>)object
{
of_list_object_t *iter;
for (iter = _lastListObject; iter != NULL; iter = iter->previous) {
|
| ︙ | ︙ |
Changes to src/OFStdIOStream.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #include <unistd.h> #import "OFStdIOStream.h" #import "OFDate.h" #import "OFApplication.h" #import "OFReadFailedException.h" |
| ︙ | ︙ | |||
149 150 151 152 153 154 155 |
- (unsigned int)retainCount
{
return OF_RETAIN_COUNT_MAX;
}
- (void)dealloc
{
| | < | 148 149 150 151 152 153 154 155 156 157 158 159 160 |
- (unsigned int)retainCount
{
return OF_RETAIN_COUNT_MAX;
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of stupid warning */
[super dealloc];
}
@end
|
Changes to src/OFStream.m.
| ︙ | ︙ | |||
74 75 76 77 78 79 80 |
_blocking = true;
return self;
}
- (bool)lowlevelIsAtEndOfStream
{
| | < | < | < | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
_blocking = true;
return self;
}
- (bool)lowlevelIsAtEndOfStream
{
OF_UNRECOGNIZED_SELECTOR
}
- (size_t)lowlevelReadIntoBuffer: (void*)buffer
length: (size_t)length
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)lowlevelWriteBuffer: (const void*)buffer
length: (size_t)length
{
OF_UNRECOGNIZED_SELECTOR
}
- copy
{
return [self retain];
}
|
| ︙ | ︙ | |||
1529 1530 1531 1532 1533 1534 1535 | if (!readImplemented && !writeImplemented) @throw [OFNotImplementedException exceptionWithSelector: _cmd object: self]; _blocking = enable; #else | | < | < | < | 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 |
if (!readImplemented && !writeImplemented)
@throw [OFNotImplementedException exceptionWithSelector: _cmd
object: self];
_blocking = enable;
#else
OF_UNRECOGNIZED_SELECTOR
#endif
}
- (int)fileDescriptorForReading
{
OF_UNRECOGNIZED_SELECTOR
}
- (int)fileDescriptorForWriting
{
OF_UNRECOGNIZED_SELECTOR
}
#ifdef OF_HAVE_SOCKETS
- (void)cancelAsyncRequests
{
[OFRunLoop OF_cancelAsyncRequestsForStream: self];
}
|
| ︙ | ︙ | |||
1570 1571 1572 1573 1574 1575 1576 |
memcpy(_readBuffer, buffer, length);
_readBufferLength += length;
}
- (void)close
{
| | < | 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 |
memcpy(_readBuffer, buffer, length);
_readBufferLength += length;
}
- (void)close
{
OF_UNRECOGNIZED_SELECTOR
}
- (bool)OF_isWaitingForDelimiter
{
return _waitingForDelimiter;
}
@end
|
Changes to src/OFStreamObserver.m.
| ︙ | ︙ | |||
14 15 16 17 18 19 20 | * file. */ #include "config.h" #define __NO_EXT_QNX | < < | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | * file. */ #include "config.h" #define __NO_EXT_QNX #include <unistd.h> #include <assert.h> #import "OFStreamObserver.h" #import "OFStreamObserver+Private.h" #import "OFArray.h" |
| ︙ | ︙ | |||
295 296 297 298 299 300 301 |
}
[self cancel];
}
- (void)OF_addFileDescriptorForReading: (int)fd
{
| | < | < | < | < | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
}
[self cancel];
}
- (void)OF_addFileDescriptorForReading: (int)fd
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)OF_addFileDescriptorForWriting: (int)fd
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)OF_removeFileDescriptorForReading: (int)fd
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)OF_removeFileDescriptorForWriting: (int)fd
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)OF_processQueue
{
#ifdef OF_HAVE_THREADS
[_mutex lock];
#endif
|
| ︙ | ︙ | |||
397 398 399 400 401 402 403 |
- (void)observe
{
[self observeForTimeInterval: -1];
}
- (bool)observeForTimeInterval: (double)timeInterval
{
| | < | 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 |
- (void)observe
{
[self observeForTimeInterval: -1];
}
- (bool)observeForTimeInterval: (double)timeInterval
{
OF_UNRECOGNIZED_SELECTOR
}
- (bool)observeUntilDate: (OFDate*)date
{
return [self observeForTimeInterval: [date timeIntervalSinceNow]];
}
|
| ︙ | ︙ |
Changes to src/OFString.m.
| ︙ | ︙ | |||
452 453 454 455 456 457 458 |
- (void)release
{
}
- (void)dealloc
{
| | < | 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
@end
@implementation OFString
|
| ︙ | ︙ | |||
1227 1228 1229 1230 1231 1232 1233 |
- (const char*)UTF8String
{
return [self cStringWithEncoding: OF_STRING_ENCODING_UTF_8];
}
- (size_t)length
{
| | < | 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 |
- (const char*)UTF8String
{
return [self cStringWithEncoding: OF_STRING_ENCODING_UTF_8];
}
- (size_t)length
{
OF_UNRECOGNIZED_SELECTOR
}
- (size_t)cStringLengthWithEncoding: (of_string_encoding_t)encoding
{
switch (encoding) {
case OF_STRING_ENCODING_UTF_8:;
const of_unichar_t *characters;
|
| ︙ | ︙ | |||
1271 1272 1273 1274 1275 1276 1277 |
- (size_t)UTF8StringLength
{
return [self cStringLengthWithEncoding: OF_STRING_ENCODING_UTF_8];
}
- (of_unichar_t)characterAtIndex: (size_t)index
{
| | < | 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 |
- (size_t)UTF8StringLength
{
return [self cStringLengthWithEncoding: OF_STRING_ENCODING_UTF_8];
}
- (of_unichar_t)characterAtIndex: (size_t)index
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)getCharacters: (of_unichar_t*)buffer
inRange: (of_range_t)range
{
size_t i;
|
| ︙ | ︙ |
Changes to src/OFSystemInfo.m.
| ︙ | ︙ | |||
16 17 18 19 20 21 22 | #include "config.h" #define __NO_EXT_QNX #import "OFSystemInfo.h" | < < > > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
#include "config.h"
#define __NO_EXT_QNX
#import "OFSystemInfo.h"
#include <unistd.h>
#ifdef __QNX__
# include <sys/syspage.h>
#endif
#ifdef _WIN32
# include <windows.h>
#endif
#import "macros.h"
static size_t pageSize;
static size_t numberOfCPUs;
@implementation OFSystemInfo
+ (void)initialize
{
|
| ︙ | ︙ | |||
60 61 62 63 64 65 66 |
# endif
numberOfCPUs = 1;
#endif
}
+ alloc
{
| | < | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# endif
numberOfCPUs = 1;
#endif
}
+ alloc
{
OF_UNRECOGNIZED_SELECTOR
}
+ (size_t)pageSize
{
return pageSize;
}
+ (size_t)numberOfCPUs
{
return numberOfCPUs;
}
@end
|
Changes to src/OFXMLNode.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "OFXMLNode.h"
#import "OFString.h"
#import "macros.h"
@implementation OFXMLNode
- initWithSerialization: (OFXMLElement*)element
{
OF_INVALID_INIT_METHOD
}
- (OFString*)stringValue
{
OF_UNRECOGNIZED_SELECTOR
}
- (intmax_t)decimalValue
{
return [[self stringValue] decimalValue];
}
|
| ︙ | ︙ | |||
66 67 68 69 70 71 72 |
return [self XMLStringWithIndentation: 0
level: 0];
}
- (OFString*)XMLStringWithIndentation: (unsigned int)indentation
level: (unsigned int)level
{
| | < | < | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
return [self XMLStringWithIndentation: 0
level: 0];
}
- (OFString*)XMLStringWithIndentation: (unsigned int)indentation
level: (unsigned int)level
{
OF_UNRECOGNIZED_SELECTOR
}
- (OFString*)description
{
return [self XMLStringWithIndentation: 2];
}
- (OFXMLElement*)XMLElementBySerializing
{
OF_UNRECOGNIZED_SELECTOR
}
- copy
{
return [self retain];
}
@end
|
Changes to src/exceptions/OFAllocFailedException.m.
| ︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < | < | < | < | < | < | < | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "OFAllocFailedException.h"
#import "OFString.h"
#import "macros.h"
@implementation OFAllocFailedException
+ alloc
{
OF_UNRECOGNIZED_SELECTOR
}
- init
{
OF_INVALID_INIT_METHOD
}
- (void*)allocMemoryWithSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)allocMemoryForNItems: (size_t)nitems
withSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)ptr
toSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void*)resizeMemory: (void*)ptr
toNItems: (size_t)nitems
withSize: (size_t)size
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)freeMemory: (void*)ptr
{
OF_UNRECOGNIZED_SELECTOR
}
- retain
{
return self;
}
|
| ︙ | ︙ | |||
86 87 88 89 90 91 92 |
- (void)release
{
}
- (void)dealloc
{
| | < | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
- (void)release
{
}
- (void)dealloc
{
OF_UNRECOGNIZED_SELECTOR
/* Get rid of a stupid warning */
[super dealloc];
}
- (OFString*)description
{
return @"Allocating an object failed!";
}
@end
|
Changes to src/macros.h.
| ︙ | ︙ | |||
128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
#define OF_IVAR_OFFSET(ivar) ((intptr_t)&ivar - (intptr_t)self)
#define OF_GETTER(ivar, atomic) \
return objc_getProperty(self, _cmd, OF_IVAR_OFFSET(ivar), atomic);
#define OF_SETTER(ivar, value, atomic, copy) \
objc_setProperty(self, _cmd, OF_IVAR_OFFSET(ivar), value, atomic, copy);
#define OF_INVALID_INIT_METHOD \
@try { \
[self doesNotRecognizeSelector: _cmd]; \
} @catch (id e) { \
[self release]; \
@throw e; \
} \
| > > > | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
#define OF_IVAR_OFFSET(ivar) ((intptr_t)&ivar - (intptr_t)self)
#define OF_GETTER(ivar, atomic) \
return objc_getProperty(self, _cmd, OF_IVAR_OFFSET(ivar), atomic);
#define OF_SETTER(ivar, value, atomic, copy) \
objc_setProperty(self, _cmd, OF_IVAR_OFFSET(ivar), value, atomic, copy);
#define OF_UNRECOGNIZED_SELECTOR \
[self doesNotRecognizeSelector: _cmd]; \
abort();
#define OF_INVALID_INIT_METHOD \
@try { \
[self doesNotRecognizeSelector: _cmd]; \
} @catch (id e) { \
[self release]; \
@throw e; \
} \
|
| ︙ | ︙ |