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 {
386386 addrs: []Address,
387387 canon_name: ?[]u8,
388388
389 fn deinit(self: *AddressList) void {
389 pub fn deinit(self: *AddressList) void {
390390 // Here we copy the arena allocator into stack memory, because
391391 // otherwise it would destroy itself while it was still working.
392392 var arena = self.arena;
lib/std/pdb.zig+3-3
......@@ -644,7 +644,7 @@ const MsfStream = struct {
644644 return stream;
645645 }
646646
647 fn readNullTermString(self: *MsfStream, allocator: *mem.Allocator) ![]u8 {
647 pub fn readNullTermString(self: *MsfStream, allocator: *mem.Allocator) ![]u8 {
648648 var list = ArrayList(u8).init(allocator);
649649 while (true) {
650650 const byte = try self.inStream().readByte();
......@@ -684,13 +684,13 @@ const MsfStream = struct {
684684 return buffer.len;
685685 }
686686
687 fn seekBy(self: *MsfStream, len: i64) !void {
687 pub fn seekBy(self: *MsfStream, len: i64) !void {
688688 self.pos = @intCast(u64, @intCast(i64, self.pos) + len);
689689 if (self.pos >= self.blocks.len * self.block_size)
690690 return error.EOF;
691691 }
692692
693 fn seekTo(self: *MsfStream, len: u64) !void {
693 pub fn seekTo(self: *MsfStream, len: u64) !void {
694694 self.pos = len;
695695 if (self.pos >= self.blocks.len * self.block_size)
696696 return error.EOF;
src-self-hosted/ir/text.zig+1-1
......@@ -236,7 +236,7 @@ pub const Inst = struct {
236236 @"comptime_int",
237237 @"comptime_float",
238238
239 fn toType(self: BuiltinType) Type {
239 pub fn toType(self: BuiltinType) Type {
240240 return switch (self) {
241241 .@"isize" => Type.initTag(.@"isize"),
242242 .@"usize" => Type.initTag(.@"usize"),