Differences From Artifact [fed71ad63c]:
- File
src/OFCountedSet_hashtable.m
— part of check-in
[008be86a16]
at
2012-03-12 11:54:22
on branch trunk
— OFArray: +[arrayWithCArray:length:] -> +[arrayWithObjects:count:].
This is required for the new array literals. (user: js, size: 4936) [annotate] [blame] [check-ins using] [more...]
To Artifact [1e8e3d5e5e]:
- File src/OFCountedSet_hashtable.m — part of check-in [5e98e61531] at 2012-03-28 09:25:40 on branch trunk — Add +[OFSet setWithObjects:count:]. (user: js, size: 5172) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
79 80 81 82 83 84 85 86 87 88 89 90 91 92 | - initWithArray: (OFArray*)array { self = [self init]; @try { id *objects = [array objects]; size_t i, count = [array count]; for (i = 0; i < count; i++) [self addObject: objects[i]]; } @catch (id e) { [self release]; @throw e; } | > > > > > > > > > > > > > > > > > > | 79 80 81 82 83 84 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 110 | - initWithArray: (OFArray*)array { self = [self init]; @try { id *objects = [array objects]; size_t i, count = [array count]; for (i = 0; i < count; i++) [self addObject: objects[i]]; } @catch (id e) { [self release]; @throw e; } return self; } - initWithObjects: (id*)objects count: (size_t)count { self = [self init]; @try { size_t i; for (i = 0; i < count; i++) [self addObject: objects[i]]; } @catch (id e) { [self release]; @throw e; } |
︙ | ︙ |