Differences From Artifact [e1c0bd1b7d]:
- File
src/OFArray.m
— part of check-in
[f48ee629e3]
at
2008-12-10 17:53:03
on branch trunk
— Always use [self alloc] in + new.
This way, derivated classes are not forced to always override + new. (user: js, size: 3176) [annotate] [blame] [check-ins using]
To Artifact [9150d2b2a3]:
- File src/OFArray.m — part of check-in [142572f90b] at 2008-12-13 19:25:35 on branch trunk — Initial attempt to port to win32. (user: js, size: 3206) [annotate] [blame] [check-ins using]
︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | + | #import <unistd.h> #import "OFArray.h" #import "OFExceptions.h" #import "OFMacros.h" static size_t lastpagebyte = 0; extern int getpagesize(void); @implementation OFArray + newWithItemSize: (size_t)is { return [[self alloc] initWithItemSize: is]; } |
︙ |