mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
test/standalone/cat: update to new std library
This commit is contained in:
parent
a1abbb8eac
commit
ed5c778c10
@ -3,10 +3,14 @@ const io = std.io;
|
||||
const process = std.process;
|
||||
const fs = std.fs;
|
||||
const mem = std.mem;
|
||||
const warn = std.debug.warn;
|
||||
const allocator = std.testing.allocator;
|
||||
const warn = std.log.warn;
|
||||
|
||||
var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
const allocator = &general_purpose_allocator.allocator;
|
||||
|
||||
pub fn main() !void {
|
||||
defer _ = general_purpose_allocator.deinit();
|
||||
|
||||
var args_it = process.args();
|
||||
const exe = try unwrapArg(args_it.next(allocator).?);
|
||||
var catted_anything = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user