Differences From Artifact [9c55df296d]:
- File
utils/ofhash/OFHash.m
— part of check-in
[7c27db9fe0]
at
2015-02-01 00:47:18
on branch trunk
— Add -[OFHash reset]
This is useful to calculate many hashes without allocating new objects. (user: js, size: 3444) [annotate] [blame] [check-ins using]
To Artifact [145a9f9ca5]:
- File utils/ofhash/OFHash.m — part of check-in [ff17b98ab2] at 2015-04-11 11:01:48 on branch trunk — OFOpenFileFailedException: Rename File -> Item (user: js, size: 3444) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 | #import "OFSHA1Hash.h" #import "OFSHA224Hash.h" #import "OFSHA256Hash.h" #import "OFSHA384Hash.h" #import "OFSHA512Hash.h" #import "OFStdIOStream.h" | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #import "OFSHA1Hash.h" #import "OFSHA224Hash.h" #import "OFSHA256Hash.h" #import "OFSHA384Hash.h" #import "OFSHA512Hash.h" #import "OFStdIOStream.h" #import "OFOpenItemFailedException.h" #import "OFReadFailedException.h" @interface OFHash: OFObject @end OF_APPLICATION_DELEGATE(OFHash) |
︙ | ︙ | |||
93 94 95 96 97 98 99 | if ([path isEqual: @"-"]) file = of_stdin; else { @try { file = [OFFile fileWithPath: path mode: @"rb"]; | | | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | if ([path isEqual: @"-"]) file = of_stdin; else { @try { file = [OFFile fileWithPath: path mode: @"rb"]; } @catch (OFOpenItemFailedException *e) { [of_stderr writeFormat: @"Failed to open file %@: %s\n", [e path], strerror([e errNo])]; exitStatus = 1; goto outer_loop_end; } |
︙ | ︙ |