Differences From Artifact [3315367580]:
- File
src/OFArray.m
— part of check-in
[139591afe1]
at
2009-04-19 20:34:38
on branch trunk
— Use isa instead of [self class].
Since we don't use Object anymore and define isa in OFObject, we can
rely on it. (user: js, size: 4758) [annotate] [blame] [check-ins using]
To Artifact [02c5a4d259]:
- File src/OFArray.m — part of check-in [d87df02e8b] at 2009-04-21 17:16:23 on branch trunk — The if ((self = [super init])) construct isn't needed anymore. (user: js, size: 4738) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
32 33 34 35 36 37 38 |
+ bigArrayWithItemSize: (size_t)is
{
return [[[OFBigArray alloc] initWithItemSize: is] autorelease];
}
- initWithItemSize: (size_t)is
{
| | > | | | < | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
+ bigArrayWithItemSize: (size_t)is
{
return [[[OFBigArray alloc] initWithItemSize: is] autorelease];
}
- initWithItemSize: (size_t)is
{
self = [super init];
data = NULL;
itemsize = is;
items = 0;
return self;
}
- (size_t)items
{
return items;
|
| ︙ | ︙ | |||
179 180 181 182 183 184 185 186 187 |
return hash;
}
@end
@implementation OFBigArray
- initWithItemSize: (size_t)is
{
if (lastpagebyte == 0)
lastpagebyte = getpagesize() - 1;
| > > < < | | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
return hash;
}
@end
@implementation OFBigArray
- initWithItemSize: (size_t)is
{
self = [super initWithItemSize: is];
if (lastpagebyte == 0)
lastpagebyte = getpagesize() - 1;
size = 0;
return self;
}
- add: (void*)item
{
size_t nsize;
|
| ︙ | ︙ |