diff options
| author | 2019-05-28 11:31:30 +0200 | |
|---|---|---|
| committer | 2019-05-28 11:31:30 +0200 | |
| commit | 9468c187bd7d5e85398dd6e5a21a69639ee7f056 (patch) | |
| tree | 7c5c73ebc25e35ec22ffe89431ce4baa7207c8c5 | |
| parent | Merge branch 'master' of github.com:Hejsil/zig-clap (diff) | |
| download | zig-clap-9468c187bd7d5e85398dd6e5a21a69639ee7f056.tar.gz zig-clap-9468c187bd7d5e85398dd6e5a21a69639ee7f056.tar.xz zig-clap-9468c187bd7d5e85398dd6e5a21a69639ee7f056.zip | |
updated to newest version of zig
| -rw-r--r-- | src/args.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/args.zig b/src/args.zig index 8706ebc..a34c14c 100644 --- a/src/args.zig +++ b/src/args.zig | |||
| @@ -4,7 +4,7 @@ const std = @import("std"); | |||
| 4 | const debug = std.debug; | 4 | const debug = std.debug; |
| 5 | const heap = std.heap; | 5 | const heap = std.heap; |
| 6 | const mem = std.mem; | 6 | const mem = std.mem; |
| 7 | const os = std.os; | 7 | const process = std.process; |
| 8 | 8 | ||
| 9 | /// An example of what methods should be implemented on an arg iterator. | 9 | /// An example of what methods should be implemented on an arg iterator. |
| 10 | pub const ExampleArgIterator = struct { | 10 | pub const ExampleArgIterator = struct { |
| @@ -52,15 +52,15 @@ test "clap.args.SliceIterator" { | |||
| 52 | /// An argument iterator which wraps the ArgIterator in ::std. | 52 | /// An argument iterator which wraps the ArgIterator in ::std. |
| 53 | /// On windows, this iterator allocates. | 53 | /// On windows, this iterator allocates. |
| 54 | pub const OsIterator = struct { | 54 | pub const OsIterator = struct { |
| 55 | const Error = os.ArgIterator.NextError; | 55 | const Error = process.ArgIterator.NextError; |
| 56 | 56 | ||
| 57 | arena: heap.ArenaAllocator, | 57 | arena: heap.ArenaAllocator, |
| 58 | args: os.ArgIterator, | 58 | args: process.ArgIterator, |
| 59 | 59 | ||
| 60 | pub fn init(allocator: *mem.Allocator) OsIterator { | 60 | pub fn init(allocator: *mem.Allocator) OsIterator { |
| 61 | return OsIterator{ | 61 | return OsIterator{ |
| 62 | .arena = heap.ArenaAllocator.init(allocator), | 62 | .arena = heap.ArenaAllocator.init(allocator), |
| 63 | .args = os.args(), | 63 | .args = process.args(), |
| 64 | }; | 64 | }; |
| 65 | } | 65 | } |
| 66 | 66 | ||