Put stream into the impl

This commit is contained in:
gingerBill
2023-06-08 17:00:38 +01:00
parent 145a7a24e8
commit 2a212a7556
4 changed files with 21 additions and 19 deletions
+3 -1
View File
@@ -38,6 +38,8 @@ _File :: struct {
wname: win32.wstring,
kind: _File_Kind,
stream: io.Stream,
allocator: runtime.Allocator,
rw_mutex: sync.RW_Mutex, // read write calls
@@ -144,7 +146,7 @@ _new_file :: proc(handle: uintptr, name: string) -> ^File {
}
f.impl.kind = kind
f.stream = {
f.impl.stream = {
data = f,
procedure = _file_stream_proc,
}