Skip to content

Commit

Permalink
fixed to work with latest zig 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 23, 2022
1 parent 34178fc commit 8697750
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zek.zig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub const Headers = struct {
pub fn init(parentAllocator: Allocator) !Self {
var allocator = try parentAllocator.create(std.heap.ArenaAllocator);
allocator.* = std.heap.ArenaAllocator.init(parentAllocator);
const dir = try std.fs.cwd().openDir(".", .{ .iterate = true });
const dir = try std.fs.cwd().openIterableDir(".", .{});
var iterator = dir.iterate();
var items = std.ArrayList(Header).init(allocator.allocator());
var hashedItems = std.StringHashMap(usize).init(allocator.allocator());
Expand Down Expand Up @@ -1695,7 +1695,8 @@ pub const UserInterface = struct {

pub fn main() !void {
if (builtin.os.tag != .windows) {
var tty: std.fs.File = try std.fs.cwd().openFile("/dev/tty", .{ .mode = std.fs.File.OpenMode.read_write });
var tty: std.fs.File = try std.fs.cwd().openFile("/dev/tty", .{ // .mode = std.fs.File.OpenMode.read_write
});
defer tty.close();
var winSize = mem.zeroes(std.os.system.winsize);
const err = std.os.system.ioctl(tty.handle, std.os.system.T.IOCGWINSZ, @ptrToInt(&winSize));
Expand Down
Binary file added zek.exe.obj
Binary file not shown.
Binary file added zek.o
Binary file not shown.
Binary file modified zek_linux
Binary file not shown.
Binary file modified zek_macos_M1
Binary file not shown.
Binary file modified zek_macos_x86
Binary file not shown.
Binary file modified zek_pi_zero_1
Binary file not shown.
Binary file modified zek_windows.exe
Binary file not shown.

0 comments on commit 8697750

Please sign in to comment.