Differences From Artifact [47c8f02867]:
- File
utils/ofhash/OFHash.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 3390) [annotate] [blame] [check-ins using]
To Artifact [db4af5bb82]:
- File utils/ofhash/OFHash.m — part of check-in [e0b9167693] at 2016-02-21 15:37:42 on branch trunk — Make use of C99-style for loops (user: js, size: 3394) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
82 83 84 85 86 87 88 | if ((hash = hashForName([arguments firstObject])) == nil) help(); for (OFString *path in arguments) { void *pool; OFStream *file; const uint8_t *digest; | | | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | if ((hash = hashForName([arguments firstObject])) == nil) help(); for (OFString *path in arguments) { void *pool; OFStream *file; const uint8_t *digest; size_t digestSize; if (first) { first = false; continue; } pool = objc_autoreleasePoolPush(); |
︙ | ︙ | |||
134 135 136 137 138 139 140 | } [file close]; digest = [hash digest]; digestSize = [[hash class] digestSize]; | | | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | } [file close]; digest = [hash digest]; digestSize = [[hash class] digestSize]; for (size_t i = 0; i < digestSize; i++) [of_stdout writeFormat: @"%02x", digest[i]]; [of_stdout writeFormat: @" %@\n", path]; outer_loop_end: objc_autoreleasePoolPop(pool); } [OFApplication terminateWithStatus: exitStatus]; } @end |