Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tty.zig
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub const PosixTty = struct {
.handler = .{ .handler = PosixTty.handleWinch },
.mask = switch (builtin.os.tag) {
.macos => 0,
else => posix.empty_sigset,
else => posix.sigemptyset(),
},
.flags = 0,
};
Expand Down Expand Up @@ -93,7 +93,7 @@ pub const PosixTty = struct {
.handler = .{ .handler = posix.SIG.DFL },
.mask = switch (builtin.os.tag) {
.macos => 0,
else => posix.empty_sigset,
else => posix.sigemptyset(),
},
.flags = 0,
};
Expand Down
7 changes: 4 additions & 3 deletions src/vxfw/vxfw.zig
Original file line number Diff line number Diff line change
Expand Up @@ -550,18 +550,19 @@ test "All widgets have a doctest and refAllDecls test" {
file.name[0..idx]
else
continue;
const data = try cwd.readFileAllocOptions(std.testing.allocator, file.name, 10_000_000, null, @alignOf(u8), 0x00);
const data = try cwd.readFileAllocOptions(std.testing.allocator, file.name, 10_000_000, null, .of(u8), 0x00);
defer std.testing.allocator.free(data);
var ast = try std.zig.Ast.parse(std.testing.allocator, data, .zig);
defer ast.deinit(std.testing.allocator);

var has_doctest: bool = false;
var has_refAllDecls: bool = false;
for (ast.rootDecls()) |root_decl| {
const decl = ast.nodes.get(root_decl);
const decl = ast.nodes.get(@intFromEnum(root_decl));
switch (decl.tag) {
.test_decl => {
const test_name = ast.tokenSlice(decl.data.lhs);
const opt_token, _ = decl.data.opt_token_and_node;
const test_name = ast.tokenSlice(opt_token.unwrap() orelse continue);
if (std.mem.eql(u8, "\"refAllDecls\"", test_name))
has_refAllDecls = true
else if (std.mem.eql(u8, container_name, test_name))
Expand Down