mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Put stream into the impl
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user