Expect stream as a field directly on os2.File

This commit is contained in:
gingerBill
2024-03-13 16:30:22 +00:00
parent 5f2496226f
commit 271f84ab5b
4 changed files with 13 additions and 16 deletions
+1 -3
View File
@@ -73,8 +73,6 @@ _File :: struct {
wname: win32.wstring,
kind: _File_Kind,
stream: io.Stream,
allocator: runtime.Allocator,
rw_mutex: sync.RW_Mutex, // read write calls
@@ -181,7 +179,7 @@ _new_file :: proc(handle: uintptr, name: string) -> ^File {
}
f.impl.kind = kind
f.impl.stream = {
f.stream = {
data = f,
procedure = _file_stream_proc,
}