Differences From Artifact [c0b80ff39c]:
- File
src/OFMutableDictionary.m
— part of check-in
[e8473b9db8]
at
2013-03-08 22:44:07
on branch trunk
— Document the block types.
This also removes "bool *stop" from some blocks where it does not make
sense. (user: js, size: 3945) [annotate] [blame] [check-ins using]
To Artifact [09dfaa10d0]:
- File src/OFMutableDictionary.m — part of check-in [aae02e7970] at 2013-08-10 23:12:07 on branch trunk — Add -[OFMutableDictionary removeAllObjects]. (user: js, size: 4253) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include "config.h" #include <stdlib.h> #import "OFMutableDictionary_hashtable.h" static struct { Class isa; } placeholder; @interface OFMutableDictionary_placeholder: OFDictionary @end | > > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include "config.h" #include <stdlib.h> #import "OFMutableDictionary_hashtable.h" #import "autorelease.h" static struct { Class isa; } placeholder; @interface OFMutableDictionary_placeholder: OFDictionary @end |
︙ | ︙ | |||
185 186 187 188 189 190 191 192 193 194 195 196 197 198 | } - (void)removeObjectForKey: (id)key { [self doesNotRecognizeSelector: _cmd]; abort(); } - copy { return [[OFDictionary alloc] initWithDictionary: self]; } #ifdef OF_HAVE_BLOCKS | > > > > > > > > > > > > > | 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 212 213 | } - (void)removeObjectForKey: (id)key { [self doesNotRecognizeSelector: _cmd]; abort(); } - (void)removeAllObjects { void *pool = objc_autoreleasePoolPush(); OFArray *keys = [self allKeys]; OFEnumerator *enumerator = [keys objectEnumerator]; id key; while ((key = [enumerator nextObject]) != nil) [self removeObjectForKey: key]; objc_autoreleasePoolPop(pool); } - copy { return [[OFDictionary alloc] initWithDictionary: self]; } #ifdef OF_HAVE_BLOCKS |
︙ | ︙ |