Differences From Artifact [2beeed38e8]:
- File
src/OFSet_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: 4673) [annotate] [blame] [check-ins using] [more...]
To Artifact [79c7f9b45c]:
- File src/OFSet_hashtable.m — part of check-in [5e98e61531] at 2012-03-28 09:25:40 on branch trunk — Add +[OFSet setWithObjects:count:]. (user: js, size: 5085) [annotate] [blame] [check-ins using]
︙ | |||
78 79 80 81 82 83 84 85 86 87 88 89 90 91 | 78 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 111 112 113 114 115 | + + + + + + + + + + + + + + + + + + + + + + + + | self = [self init]; @try { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFNumber *one = [OFNumber numberWithSize: 1]; id *objects = [array objects]; size_t i, count = [array count]; for (i = 0; i < count; i++) [dictionary _setObject: one forKey: objects[i] copyKey: NO]; [pool release]; } @catch (id e) { [self release]; @throw e; } return self; } - initWithObjects: (id*)objects count: (size_t)count { self = [self init]; @try { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFNumber *one = [OFNumber numberWithSize: 1]; size_t i; for (i = 0; i < count; i++) [dictionary _setObject: one forKey: objects[i] copyKey: NO]; [pool release]; |
︙ |