Differences From Artifact [0e3d14e495]:
- File
src/OFAutoreleasePool.m
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 3823) [annotate] [blame] [check-ins using]
To Artifact [4e90c8c96d]:
- File src/OFAutoreleasePool.m — part of check-in [eafb8d18ed] at 2010-09-07 09:10:33 on branch trunk — Rename +[addObjectToTopmostPool:] to +[addObject:]. (user: js, size: 3810) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
35 36 37 38 39 40 41 | return; if (!of_tlskey_new(&first_key) || !of_tlskey_new(&last_key)) @throw [OFInitializationFailedException newWithClass: self]; } #endif | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | return; if (!of_tlskey_new(&first_key) || !of_tlskey_new(&last_key)) @throw [OFInitializationFailedException newWithClass: self]; } #endif + (void)addObject: (id)obj { #ifdef OF_THREADS id last = of_tlskey_get(last_key); #endif if (last == nil) { @try { |
︙ | ︙ |