diff options
| author | Lee Cannon <leecannon@leecannon.xyz> | 2021-10-29 00:37:25 +0100 |
|---|---|---|
| committer | Lee Cannon <leecannon@leecannon.xyz> | 2021-11-30 23:32:47 +0000 |
| commit | 85de022c5671d777f62ddff254a814dab05242fc (patch) | |
| tree | 037f58c4b07d18b80cf48cf74d0f0e8c8866f8f2 /lib/std/pdb.zig | |
| parent | 1e0addcf73ee71d23a41b744995848bcca38e8d3 (diff) | |
| download | zig-85de022c5671d777f62ddff254a814dab05242fc.tar.gz zig-85de022c5671d777f62ddff254a814dab05242fc.zip | |
allocgate: std Allocator interface refactor
Diffstat (limited to 'lib/std/pdb.zig')
| -rw-r--r-- | lib/std/pdb.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig index 26688d028e..0a484fed31 100644 --- a/lib/std/pdb.zig +++ b/lib/std/pdb.zig @@ -460,7 +460,7 @@ pub const PDBStringTableHeader = packed struct { ByteSize: u32, }; -fn readSparseBitVector(stream: anytype, allocator: *mem.Allocator) ![]u32 { +fn readSparseBitVector(stream: anytype, allocator: mem.Allocator) ![]u32 { const num_words = try stream.readIntLittle(u32); var list = ArrayList(u32).init(allocator); errdefer list.deinit(); @@ -481,7 +481,7 @@ fn readSparseBitVector(stream: anytype, allocator: *mem.Allocator) ![]u32 { pub const Pdb = struct { in_file: File, msf: Msf, - allocator: *mem.Allocator, + allocator: mem.Allocator, string_table: ?*MsfStream, dbi: ?*MsfStream, modules: []Module, @@ -500,7 +500,7 @@ pub const Pdb = struct { checksum_offset: ?usize, }; - pub fn init(allocator: *mem.Allocator, path: []const u8) !Pdb { + pub fn init(allocator: mem.Allocator, path: []const u8) !Pdb { const file = try fs.cwd().openFile(path, .{ .intended_io_mode = .blocking }); errdefer file.close(); @@ -858,7 +858,7 @@ const Msf = struct { directory: MsfStream, streams: []MsfStream, - fn init(allocator: *mem.Allocator, file: File) !Msf { + fn init(allocator: mem.Allocator, file: File) !Msf { const in = file.reader(); const superblock = try in.readStruct(SuperBlock); |
