aboutsummaryrefslogtreecommitdiff
path: root/std/pdb.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/pdb.zig')
-rw-r--r--std/pdb.zig11
1 files changed, 6 insertions, 5 deletions
diff --git a/std/pdb.zig b/std/pdb.zig
index 0f3a6d00b5..2822d2546e 100644
--- a/std/pdb.zig
+++ b/std/pdb.zig
@@ -6,6 +6,7 @@ const mem = std.mem;
const os = std.os;
const warn = std.debug.warn;
const coff = std.coff;
+const File = std.fs.File;
const ArrayList = std.ArrayList;
@@ -459,7 +460,7 @@ pub const PDBStringTableHeader = packed struct {
};
pub const Pdb = struct {
- in_file: os.File,
+ in_file: File,
allocator: *mem.Allocator,
coff: *coff.Coff,
string_table: *MsfStream,
@@ -468,7 +469,7 @@ pub const Pdb = struct {
msf: Msf,
pub fn openFile(self: *Pdb, coff_ptr: *coff.Coff, file_name: []u8) !void {
- self.in_file = try os.File.openRead(file_name);
+ self.in_file = try File.openRead(file_name);
self.allocator = coff_ptr.allocator;
self.coff = coff_ptr;
@@ -492,7 +493,7 @@ const Msf = struct {
directory: MsfStream,
streams: []MsfStream,
- fn openFile(self: *Msf, allocator: *mem.Allocator, file: os.File) !void {
+ fn openFile(self: *Msf, allocator: *mem.Allocator, file: File) !void {
var file_stream = file.inStream();
const in = &file_stream.stream;
@@ -587,7 +588,7 @@ const SuperBlock = packed struct {
};
const MsfStream = struct {
- in_file: os.File,
+ in_file: File,
pos: u64,
blocks: []u32,
block_size: u32,
@@ -598,7 +599,7 @@ const MsfStream = struct {
pub const Error = @typeOf(read).ReturnType.ErrorSet;
pub const Stream = io.InStream(Error);
- fn init(block_size: u32, block_count: u32, pos: u64, file: os.File, allocator: *mem.Allocator) !MsfStream {
+ fn init(block_size: u32, block_count: u32, pos: u64, file: File, allocator: *mem.Allocator) !MsfStream {
var stream = MsfStream{
.in_file = file,
.pos = 0,