authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-26 17:28:28-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-26 17:28:28-07:00
logca10dac88432ed0145b43d47c27a04ad7e4858c9
tree412286261dccbb3293d7d69ce83520cd1a1be6f2
parente648d8b8bc8d807d0f0d802c20eb5f2280f5e036
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

Dir: no need for these flags structs to be packed


1 files changed, 2 insertions(+), 2 deletions(-)

Dir.zig+2-2
...@@ -54,7 +54,7 @@ pub fn openFileC(self: Dir, sub_path: []const u8, flags: OpenFileFlags) !File {...@@ -54,7 +54,7 @@ pub fn openFileC(self: Dir, sub_path: []const u8, flags: OpenFileFlags) !File {
54 return openFile(self, buf[0..sub_path.len :0], flags);54 return openFile(self, buf[0..sub_path.len :0], flags);
55}55}
5656
57pub const OpenFileFlags = packed struct {57pub const OpenFileFlags = struct {
58 mode: enum(u8) { read_only, write_only, read_write } = .read_only,58 mode: enum(u8) { read_only, write_only, read_write } = .read_only,
59 lock: enum(u8) { none, shared, exclusive } = .none,59 lock: enum(u8) { none, shared, exclusive } = .none,
60};60};
...@@ -72,7 +72,7 @@ pub fn openDirC(self: Dir, sub_path: []const u8, flags: OpenDirFlags) !Dir {...@@ -72,7 +72,7 @@ pub fn openDirC(self: Dir, sub_path: []const u8, flags: OpenDirFlags) !Dir {
72 return openDir(self, buf[0..sub_path.len :0], flags);72 return openDir(self, buf[0..sub_path.len :0], flags);
73}73}
7474
75pub const OpenDirFlags = packed struct {75pub const OpenDirFlags = struct {
76 //76 //
77};77};
7878