authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-09-27 15:00:41+10:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-09-27 15:00:41+10:00
loged5c778c103ceba5f0121d441598e160a5af643e
tree726d7a98e2a3a347d851d106be26cd7a35f04bf4
parenta1abbb8eac4c73d1235a03579ee228ed48b56f9f
signaturelock-open Commit is signed but in an unrecognized format.

test/standalone/cat: update to new std library


1 files changed, 6 insertions(+), 2 deletions(-)

test/standalone/cat/main.zig+6-2
......@@ -3,10 +3,14 @@ const io = std.io;
33const process = std.process;
44const fs = std.fs;
55const mem = std.mem;
6const warn = std.debug.warn;
7const allocator = std.testing.allocator;
6const warn = std.log.warn;
7
8var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){};
9const allocator = &general_purpose_allocator.allocator;
810
911pub fn main() !void {
12 defer _ = general_purpose_allocator.deinit();
13
1014 var args_it = process.args();
1115 const exe = try unwrapArg(args_it.next(allocator).?);
1216 var catted_anything = false;