authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-05-08 14:52:09+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-05-08 15:10:38+03:00
log10abffcd98f2f1ac9e8532c53820d7c1eea6d88f
tree208a55519fc3e5ca9f05d13c0c3ab3aca04f4f43
parentb6dc7fc9ffddebce6f04a5349c8f2252c457adf7
signature Commit is signed but in an unrecognized format.

fix more private member access


3 files changed, 5 insertions(+), 5 deletions(-)

lib/std/net.zig+1-1
...@@ -386,7 +386,7 @@ pub const AddressList = struct {...@@ -386,7 +386,7 @@ pub const AddressList = struct {
386 addrs: []Address,386 addrs: []Address,
387 canon_name: ?[]u8,387 canon_name: ?[]u8,
388388
389 fn deinit(self: *AddressList) void {389 pub fn deinit(self: *AddressList) void {
390 // Here we copy the arena allocator into stack memory, because390 // Here we copy the arena allocator into stack memory, because
391 // otherwise it would destroy itself while it was still working.391 // otherwise it would destroy itself while it was still working.
392 var arena = self.arena;392 var arena = self.arena;
lib/std/pdb.zig+3-3
...@@ -644,7 +644,7 @@ const MsfStream = struct {...@@ -644,7 +644,7 @@ const MsfStream = struct {
644 return stream;644 return stream;
645 }645 }
646646
647 fn readNullTermString(self: *MsfStream, allocator: *mem.Allocator) ![]u8 {647 pub fn readNullTermString(self: *MsfStream, allocator: *mem.Allocator) ![]u8 {
648 var list = ArrayList(u8).init(allocator);648 var list = ArrayList(u8).init(allocator);
649 while (true) {649 while (true) {
650 const byte = try self.inStream().readByte();650 const byte = try self.inStream().readByte();
...@@ -684,13 +684,13 @@ const MsfStream = struct {...@@ -684,13 +684,13 @@ const MsfStream = struct {
684 return buffer.len;684 return buffer.len;
685 }685 }
686686
687 fn seekBy(self: *MsfStream, len: i64) !void {687 pub fn seekBy(self: *MsfStream, len: i64) !void {
688 self.pos = @intCast(u64, @intCast(i64, self.pos) + len);688 self.pos = @intCast(u64, @intCast(i64, self.pos) + len);
689 if (self.pos >= self.blocks.len * self.block_size)689 if (self.pos >= self.blocks.len * self.block_size)
690 return error.EOF;690 return error.EOF;
691 }691 }
692692
693 fn seekTo(self: *MsfStream, len: u64) !void {693 pub fn seekTo(self: *MsfStream, len: u64) !void {
694 self.pos = len;694 self.pos = len;
695 if (self.pos >= self.blocks.len * self.block_size)695 if (self.pos >= self.blocks.len * self.block_size)
696 return error.EOF;696 return error.EOF;
src-self-hosted/ir/text.zig+1-1
...@@ -236,7 +236,7 @@ pub const Inst = struct {...@@ -236,7 +236,7 @@ pub const Inst = struct {
236 @"comptime_int",236 @"comptime_int",
237 @"comptime_float",237 @"comptime_float",
238238
239 fn toType(self: BuiltinType) Type {239 pub fn toType(self: BuiltinType) Type {
240 return switch (self) {240 return switch (self) {
241 .@"isize" => Type.initTag(.@"isize"),241 .@"isize" => Type.initTag(.@"isize"),
242 .@"usize" => Type.initTag(.@"usize"),242 .@"usize" => Type.initTag(.@"usize"),