Merge branch 'master' into odin-global-constants-as-enums

This commit is contained in:
gingerBill
2022-02-15 15:47:24 +00:00
committed by GitHub
113 changed files with 5553 additions and 4255 deletions
+1 -2
View File
@@ -227,11 +227,10 @@ glob :: proc(pattern: string, allocator := context.allocator) -> (matches: []str
return m[:], .None
}
temp_buf: [8]byte
dir, file := split(pattern)
volume_len := 0
when ODIN_OS == .Windows {
temp_buf: [8]byte
volume_len, dir = clean_glob_path_windows(dir, temp_buf[:])
} else {
dir = clean_glob_path(dir)
+1 -1
View File
@@ -71,7 +71,7 @@ _walk :: proc(info: os.File_Info, walk_proc: Walk_Proc) -> (err: os.Errno, skip_
@(private)
read_dir :: proc(dir_name: string, allocator := context.temp_allocator) -> ([]os.File_Info, os.Errno) {
f, err := os.open(dir_name)
f, err := os.open(dir_name, os.O_RDONLY)
if err != 0 {
return nil, err
}