Differences From Artifact [a813c350e7]:
- File src/OFZIPArchive.m — part of check-in [89d2a684d3] at 2015-08-26 09:05:26 on branch trunk — OFZIPArchive: Throw invalid format on failed seek (user: js, size: 14063) [annotate] [blame] [check-ins using] [more...]
To Artifact [e3768699d3]:
- File
src/OFZIPArchive.m
— part of check-in
[48980f2297]
at
2015-11-29 11:43:05
on branch trunk
— Make properties a requirement and clean up code
This increases the required GCC version from 4.0 to 4.6 (exception:
Apple GCC, which already supports this with >= 4.0 starting with OS X
10.5). Since even GCC 4.6 is really old by now, there is no point in
still supporting something even older and making the code ugly because
of that. While some hardware and OS support was dropped from GCC 4.6
compared to GCC 4.0, there is nothing in there that would be an
interesting target with the exception of BeOS maybe - but a port to BeOS
can also be achieved using the Haiku support. The other dropped OSes are
mostly old versions of OSes while newer ones are still being supported
(and those newer versions of those OSes still support the same
hardware). (user: js, size: 14055) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
147 148 149 150 151 152 153 154 155 156 157 158 159 160 | @throw [OFInvalidFormatException exception]; @throw e; } } @implementation OFZIPArchive + (instancetype)archiveWithSeekableStream: (OFSeekableStream*)stream { return [[[self alloc] initWithSeekableStream: stream] autorelease]; } + (instancetype)archiveWithPath: (OFString*)path { | > > | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | @throw [OFInvalidFormatException exception]; @throw e; } } @implementation OFZIPArchive @synthesize archiveComment = _archiveComment; + (instancetype)archiveWithSeekableStream: (OFSeekableStream*)stream { return [[[self alloc] initWithSeekableStream: stream] autorelease]; } + (instancetype)archiveWithPath: (OFString*)path { |
︙ | ︙ | |||
329 330 331 332 333 334 335 | [_pathToEntryMap makeImmutable]; objc_autoreleasePoolPop(pool); } - (OFArray*)entries { | < < | < < < | 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | [_pathToEntryMap makeImmutable]; objc_autoreleasePoolPop(pool); } - (OFArray*)entries { return [[_entries copy] autorelease]; } - (OFStream*)streamForReadingFile: (OFString*)path { void *pool = objc_autoreleasePoolPush(); OFZIPArchiveEntry *entry = [_pathToEntryMap objectForKey: path]; OFZIPArchive_LocalFileHeader *localFileHeader; |
︙ | ︙ |