Overview
Comment: | Make use of the fact that -[retain] and -[release] must not throw. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3687c35784dc81f2c007c2a9d283d7e9 |
User & Date: | js on 2011-09-10 23:54:57 |
Other Links: | manifest | tags |
Context
2011-09-11
| ||
00:03 | Make use of the fact that -[retain] and -[release] must not throw. check-in: 74eeea199c user: js tags: trunk | |
2011-09-10
| ||
23:54 | Make use of the fact that -[retain] and -[release] must not throw. check-in: 3687c35784 user: js tags: trunk | |
22:27 | Add -[removeChild:] to OFXMLElement. check-in: 4369d4c8fb user: js tags: trunk | |
Changes
Modified src/OFDictionary_hashtable.m from [2751804ef6] to [8e095b45a0].
︙ | |||
85 86 87 88 89 90 91 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - - + - - - + - - - - - - - | for (i = 0; i < hashtable->size; i++) data[i] = NULL; size = hashtable->size; count = hashtable->count; for (i = 0; i < size; i++) { |
︙ | |||
177 178 179 180 181 182 183 | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | - - - - - - - + - - - + + | } if (data[i] != NULL) @throw [OFOutOfRangeException newWithClass: isa]; bucket = [self allocMemoryWithSize: sizeof(*bucket)]; |
︙ | |||
224 225 226 227 228 229 230 | 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | - - - - - - - - - - - + + + | withSize: sizeof(*data)]; size = 2; for (i = 0; i < size; i++) data[i] = NULL; i = [key hash] & 1; |
︙ | |||
325 326 327 328 329 330 331 | 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | - - - - - - - - + - - - - - - - | @throw [OFOutOfRangeException newWithClass: isa]; bucket = [self allocMemoryWithSize: sizeof(*bucket)]; key = [keysCArray[i] copy]; |
︙ | |||
414 415 416 417 418 419 420 | 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | - - - - - - - - - - - + + | size = newSize; /* Add first key / object pair */ hash = [key hash]; j = hash & (size - 1); bucket = [self allocMemoryWithSize: sizeof(*bucket)]; |
︙ | |||
479 480 481 482 483 484 485 | 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | - - - - - - - - - - - + + - - - - - - - | if (j >= last) @throw [OFOutOfRangeException newWithClass: isa]; bucket = [self allocMemoryWithSize: sizeof(*bucket)]; |
︙ |
Modified src/OFMutableDictionary_hashtable.m from [ba31392df4] to [7aba881118].
︙ | |||
155 156 157 158 159 160 161 162 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | + - + - + - - + - - - - - + - - - + + | } if (i >= last) @throw [OFOutOfRangeException newWithClass: isa]; bucket = [self allocMemoryWithSize: sizeof(*bucket)]; if (copyKey) { @try { |
︙ |
Modified src/OFStreamSelectObserver.m from [c9a34f66b3] to [ed43022176].
︙ | |||
39 40 41 42 43 44 45 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - - - - | }; @implementation OFStreamSelectObserver - init { self = [super init]; |
︙ |
Modified src/OFThread.m from [28529a39cf] to [f4c5d36434].
︙ | |||
257 258 259 260 261 262 263 | 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | - - - - - - - - - - | of_thread_exit(); } - initWithObject: (id)object_ { self = [super init]; |
︙ |
Modified src/OFXMLElement.m from [ddafe5133c] to [67c5a15992].
︙ | |||
276 277 278 279 280 281 282 | 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | - - - - - | if (![parser finishedParsing]) @throw [OFMalformedXMLException newWithClass: c parser: parser]; self = [delegate->element retain]; |
︙ | |||
315 316 317 318 319 320 321 | 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | - - - - - | if (![parser finishedParsing]) @throw [OFMalformedXMLException newWithClass: c parser: parser]; self = [delegate->element retain]; |
︙ | |||
423 424 425 426 427 428 429 | 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | - - - - - - - | { return [[attributes copy] autorelease]; } - (void)setChildren: (OFArray*)children_ { OFMutableArray *new = [children_ mutableCopy]; |
︙ |