| author | |
| committer | |
| log | b6dc7fc9ffddebce6f04a5349c8f2252c457adf7 |
| tree | 8a7c7313167db8c8692688ca9cec4023caa794e2 |
| parent | 4a5c58dd354b84af821a6c257cc15489fc827f75 |
| signature |
6 files changed, 14 insertions(+), 14 deletions(-)
lib/std/build.zig+5-5| ... | ... | @@ -284,11 +284,11 @@ pub const Builder = struct { |
| 284 | 284 | return run_step; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | fn dupe(self: *Builder, bytes: []const u8) []u8 { | |
| 287 | pub fn dupe(self: *Builder, bytes: []const u8) []u8 { | |
| 288 | 288 | return mem.dupe(self.allocator, u8, bytes) catch unreachable; |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | fn dupePath(self: *Builder, bytes: []const u8) []u8 { | |
| 291 | pub fn dupePath(self: *Builder, bytes: []const u8) []u8 { | |
| 292 | 292 | const the_copy = self.dupe(bytes); |
| 293 | 293 | for (the_copy) |*byte| { |
| 294 | 294 | switch (byte.*) { |
| ... | ... | @@ -717,7 +717,7 @@ pub const Builder = struct { |
| 717 | 717 | return self.invalid_user_input; |
| 718 | 718 | } |
| 719 | 719 | |
| 720 | fn spawnChild(self: *Builder, argv: []const []const u8) !void { | |
| 720 | pub fn spawnChild(self: *Builder, argv: []const []const u8) !void { | |
| 721 | 721 | return self.spawnChildEnvMap(null, self.env_map, argv); |
| 722 | 722 | } |
| 723 | 723 | |
| ... | ... | @@ -843,7 +843,7 @@ pub const Builder = struct { |
| 843 | 843 | }) catch unreachable; |
| 844 | 844 | } |
| 845 | 845 | |
| 846 | fn updateFile(self: *Builder, source_path: []const u8, dest_path: []const u8) !void { | |
| 846 | pub fn updateFile(self: *Builder, source_path: []const u8, dest_path: []const u8) !void { | |
| 847 | 847 | if (self.verbose) { |
| 848 | 848 | warn("cp {} {} ", .{ source_path, dest_path }); |
| 849 | 849 | } |
| ... | ... | @@ -855,7 +855,7 @@ pub const Builder = struct { |
| 855 | 855 | }; |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | fn pathFromRoot(self: *Builder, rel_path: []const u8) []u8 { | |
| 858 | pub fn pathFromRoot(self: *Builder, rel_path: []const u8) []u8 { | |
| 859 | 859 | return fs.path.resolve(self.allocator, &[_][]const u8{ self.build_root, rel_path }) catch unreachable; |
| 860 | 860 | } |
| 861 | 861 |
lib/std/dwarf.zig+4-4| ... | ... | @@ -121,7 +121,7 @@ const Die = struct { |
| 121 | 121 | }; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | fn getAttrString(self: *const Die, di: *DwarfInfo, id: u64) ![]const u8 { | |
| 124 | pub fn getAttrString(self: *const Die, di: *DwarfInfo, id: u64) ![]const u8 { | |
| 125 | 125 | const form_value = self.getAttr(id) orelse return error.MissingDebugInfo; |
| 126 | 126 | return switch (form_value.*) { |
| 127 | 127 | FormValue.String => |value| value, |
| ... | ... | @@ -389,7 +389,7 @@ pub const DwarfInfo = struct { |
| 389 | 389 | return self.abbrev_table_list.allocator; |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | fn getSymbolName(di: *DwarfInfo, address: u64) ?[]const u8 { | |
| 392 | pub fn getSymbolName(di: *DwarfInfo, address: u64) ?[]const u8 { | |
| 393 | 393 | for (di.func_list.span()) |*func| { |
| 394 | 394 | if (func.pc_range) |range| { |
| 395 | 395 | if (address >= range.start and address < range.end) { |
| ... | ... | @@ -578,7 +578,7 @@ pub const DwarfInfo = struct { |
| 578 | 578 | } |
| 579 | 579 | } |
| 580 | 580 | |
| 581 | fn findCompileUnit(di: *DwarfInfo, target_address: u64) !*const CompileUnit { | |
| 581 | pub fn findCompileUnit(di: *DwarfInfo, target_address: u64) !*const CompileUnit { | |
| 582 | 582 | for (di.compile_unit_list.span()) |*compile_unit| { |
| 583 | 583 | if (compile_unit.pc_range) |range| { |
| 584 | 584 | if (target_address >= range.start and target_address < range.end) return compile_unit; |
| ... | ... | @@ -690,7 +690,7 @@ pub const DwarfInfo = struct { |
| 690 | 690 | return result; |
| 691 | 691 | } |
| 692 | 692 | |
| 693 | fn getLineNumberInfo(di: *DwarfInfo, compile_unit: CompileUnit, target_address: usize) !debug.LineInfo { | |
| 693 | pub fn getLineNumberInfo(di: *DwarfInfo, compile_unit: CompileUnit, target_address: usize) !debug.LineInfo { | |
| 694 | 694 | var stream = io.fixedBufferStream(di.debug_line); |
| 695 | 695 | const in = &stream.inStream(); |
| 696 | 696 | const seekable = &stream.seekableStream(); |
lib/std/dynamic_library.zig+2-2| ... | ... | @@ -33,11 +33,11 @@ const LinkMap = extern struct { |
| 33 | 33 | pub const Iterator = struct { |
| 34 | 34 | current: ?*LinkMap, |
| 35 | 35 | |
| 36 | fn end(self: *Iterator) bool { | |
| 36 | pub fn end(self: *Iterator) bool { | |
| 37 | 37 | return self.current == null; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | fn next(self: *Iterator) ?*LinkMap { | |
| 40 | pub fn next(self: *Iterator) ?*LinkMap { | |
| 41 | 41 | if (self.current) |it| { |
| 42 | 42 | self.current = it.l_next; |
| 43 | 43 | return it; |
lib/std/json.zig+1-1| ... | ... | @@ -2336,7 +2336,7 @@ pub const StringifyOptions = struct { |
| 2336 | 2336 | /// After a colon, should whitespace be inserted? |
| 2337 | 2337 | separator: bool = true, |
| 2338 | 2338 | |
| 2339 | fn outputIndent( | |
| 2339 | pub fn outputIndent( | |
| 2340 | 2340 | whitespace: @This(), |
| 2341 | 2341 | out_stream: var, |
| 2342 | 2342 | ) @TypeOf(out_stream).Error!void { |
lib/std/pdb.zig+1-1| ... | ... | @@ -708,7 +708,7 @@ const MsfStream = struct { |
| 708 | 708 | return block * self.block_size + offset; |
| 709 | 709 | } |
| 710 | 710 | |
| 711 | fn inStream(self: *MsfStream) std.io.InStream(*MsfStream, Error, read) { | |
| 711 | pub fn inStream(self: *MsfStream) std.io.InStream(*MsfStream, Error, read) { | |
| 712 | 712 | return .{ .context = self }; |
| 713 | 713 | } |
| 714 | 714 | }; |
lib/std/zig/cross_target.zig+1-1| ... | ... | @@ -660,7 +660,7 @@ pub const CrossTarget = struct { |
| 660 | 660 | return Target.getObjectFormatSimple(self.getOsTag(), self.getCpuArch()); |
| 661 | 661 | } |
| 662 | 662 | |
| 663 | fn updateCpuFeatures(self: CrossTarget, set: *Target.Cpu.Feature.Set) void { | |
| 663 | pub fn updateCpuFeatures(self: CrossTarget, set: *Target.Cpu.Feature.Set) void { | |
| 664 | 664 | set.removeFeatureSet(self.cpu_features_sub); |
| 665 | 665 | set.addFeatureSet(self.cpu_features_add); |
| 666 | 666 | set.populateDependencies(self.getCpuArch().allFeaturesList()); |