fix: windows build with 0.14.0-dev.3039
This commit is contained in:
parent
063c441c30
commit
eb9b8a3dcf
1 changed files with 4 additions and 4 deletions
|
@ -138,10 +138,10 @@ const Proc = struct {
|
||||||
|
|
||||||
fn receive(self: *Proc, _: tp.pid_ref, m: tp.message) tp.result {
|
fn receive(self: *Proc, _: tp.pid_ref, m: tp.message) tp.result {
|
||||||
errdefer self.deinit();
|
errdefer self.deinit();
|
||||||
var bytes: []u8 = "";
|
var bytes: []const u8 = "";
|
||||||
var stream_name: []u8 = "";
|
var stream_name: []const u8 = "";
|
||||||
var err: i64 = 0;
|
var err: i64 = 0;
|
||||||
var err_msg: []u8 = "";
|
var err_msg: []const u8 = "";
|
||||||
if (try m.match(.{ "stream", "stdout", "read_complete", tp.extract(&bytes) })) {
|
if (try m.match(.{ "stream", "stdout", "read_complete", tp.extract(&bytes) })) {
|
||||||
try self.dispatch_stdout(bytes);
|
try self.dispatch_stdout(bytes);
|
||||||
if (self.stream_stdout) |stream| stream.start_read() catch |e| return self.handle_error(e);
|
if (self.stream_stdout) |stream| stream.start_read() catch |e| return self.handle_error(e);
|
||||||
|
@ -692,7 +692,7 @@ const Child = struct {
|
||||||
}
|
}
|
||||||
var io_status: windows.IO_STATUS_BLOCK = undefined;
|
var io_status: windows.IO_STATUS_BLOCK = undefined;
|
||||||
|
|
||||||
const num_supported_pathext = @typeInfo(CreateProcessSupportedExtension).Enum.fields.len;
|
const num_supported_pathext = @typeInfo(CreateProcessSupportedExtension).@"enum".fields.len;
|
||||||
var pathext_seen = [_]bool{false} ** num_supported_pathext;
|
var pathext_seen = [_]bool{false} ** num_supported_pathext;
|
||||||
var any_pathext_seen = false;
|
var any_pathext_seen = false;
|
||||||
var unappended_exists = false;
|
var unappended_exists = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue