Mock out temp_file.odin stuff

This commit is contained in:
gingerBill
2024-05-14 18:11:50 +01:00
parent 361be301fa
commit 91b7cdaad2
10 changed files with 194 additions and 34 deletions
-1
View File
@@ -377,7 +377,6 @@ _temp_name_to_cstring :: proc(name: string) -> (cname: cstring) {
_file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte, offset: i64, whence: io.Seek_From) -> (n: i64, err: io.Error) {
f := (^File)(stream_data)
ferr: Error
i: int
switch mode {
case .Read:
n, ferr = _read(f, p)