diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-10 09:54:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-10 09:54:03 -0400 |
| commit | 12b2950bf294b3cfda0616b2e71b739cbda684d9 (patch) | |
| tree | 25a5a2da7a6527cf61096e236baf26c58d1ccc05 /std/child_process.zig | |
| parent | b7811d32690a9f3b4912635e16e6aa5ace25362c (diff) | |
| parent | b0648bfbd31cad73e00ee72b430dcf2c2907e08f (diff) | |
| download | zig-12b2950bf294b3cfda0616b2e71b739cbda684d9.tar.gz zig-12b2950bf294b3cfda0616b2e71b739cbda684d9.zip | |
Merge pull request #2424 from daurnimator/single-linked-list
Add SinglyLinkedList
Diffstat (limited to 'std/child_process.zig')
| -rw-r--r-- | std/child_process.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/child_process.zig b/std/child_process.zig index 2a2a294e9b..8e4c086d1d 100644 --- a/std/child_process.zig +++ b/std/child_process.zig @@ -13,7 +13,7 @@ const BufMap = std.BufMap; const Buffer = std.Buffer; const builtin = @import("builtin"); const Os = builtin.Os; -const LinkedList = std.LinkedList; +const TailQueue = std.TailQueue; const maxInt = std.math.maxInt; pub const ChildProcess = struct { @@ -48,7 +48,7 @@ pub const ChildProcess = struct { pub cwd: ?[]const u8, err_pipe: if (os.windows.is_the_target) void else [2]os.fd_t, - llnode: if (os.windows.is_the_target) void else LinkedList(*ChildProcess).Node, + llnode: if (os.windows.is_the_target) void else TailQueue(*ChildProcess).Node, pub const SpawnError = error{OutOfMemory} || os.ExecveError || os.SetIdError || os.ChangeCurDirError || windows.CreateProcessError; @@ -388,7 +388,7 @@ pub const ChildProcess = struct { self.pid = pid; self.err_pipe = err_pipe; - self.llnode = LinkedList(*ChildProcess).Node.init(self); + self.llnode = TailQueue(*ChildProcess).Node.init(self); self.term = null; if (self.stdin_behavior == StdIo.Pipe) { |
