Remove := context.allocator usage in package os2

This commit is contained in:
gingerBill
2023-02-10 11:46:29 +00:00
parent 570b127869
commit 55b79c078c
6 changed files with 17 additions and 12 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package os2
import "core:mem"
import "core:runtime"
import "core:strconv"
import "core:unicode/utf8"
@@ -74,7 +75,7 @@ read_ptr :: proc(f: ^File, data: rawptr, len: int) -> (n: int, err: Error) {
read_entire_file :: proc(name: string, allocator := context.allocator) -> (data: []byte, err: Error) {
read_entire_file :: proc(name: string, allocator: runtime.Allocator) -> (data: []byte, err: Error) {
f, ferr := open(name)
if ferr != nil {
return nil, ferr