Differences From Artifact [9c20229078]:
- File
src/exceptions/OFSeekFailedException.m
— part of check-in
[13ee56edf3]
at
2014-06-21 21:43:43
on branch trunk
— Move all macros from OFObject.h to macros.h
This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. (user: js, size: 1608) [annotate] [blame] [check-ins using]
To Artifact [931636a4ee]:
- File
src/exceptions/OFSeekFailedException.m
— part of check-in
[46b89b1c8e]
at
2015-01-03 20:42:30
on branch trunk
— Introduce and use of_offset_t instead of off_t
The reason for this is that some systems, for example Android, use
32 bits for off_t while having size related fields like st_size as
long long. (user: js, size: 1626) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
20 21 22 23 24 25 26 | #import "OFString.h" #import "OFSeekableStream.h" #import "common.h" @implementation OFSeekFailedException + (instancetype)exceptionWithStream: (OFSeekableStream*)stream | | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #import "OFString.h" #import "OFSeekableStream.h" #import "common.h" @implementation OFSeekFailedException + (instancetype)exceptionWithStream: (OFSeekableStream*)stream offset: (of_offset_t)offset whence: (int)whence { return [[[self alloc] initWithStream: stream offset: offset whence: whence] autorelease]; } - init { OF_INVALID_INIT_METHOD } - initWithStream: (OFSeekableStream*)stream offset: (of_offset_t)offset whence: (int)whence { self = [super init]; _stream = [stream retain]; _offset = offset; _whence = whence; |
︙ | ︙ | |||
66 67 68 69 70 71 72 | } - (OFSeekableStream*)stream { OF_GETTER(_stream, true) } | | | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | } - (OFSeekableStream*)stream { OF_GETTER(_stream, true) } - (of_offset_t)offset { return _offset; } - (int)whence { return _whence; |
︙ | ︙ |