diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-04 10:08:48 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-04 10:08:48 +0100 |
| commit | 71932628cc3c1957a98e998740b059df9b7dd392 (patch) | |
| tree | 2e0c87339c2d76034f29ae8aa7ef66797aa2eaf8 /core | |
| parent | e77977c8ef1b1dd7e788743bae6962ba74d8afe1 (diff) | |
Add alias
Diffstat (limited to 'core')
| -rw-r--r-- | core/os/os2/dir.odin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/os/os2/dir.odin b/core/os/os2/dir.odin index 6334ee7b8..a41ef68f9 100644 --- a/core/os/os2/dir.odin +++ b/core/os/os2/dir.odin @@ -3,6 +3,8 @@ package os2 import "base:runtime" import "core:slice" +read_dir :: read_directory + @(require_results) read_directory :: proc(f: ^File, n: int, allocator: runtime.Allocator) -> (files: []File_Info, err: Error) { if f == nil { @@ -57,6 +59,7 @@ read_all_directory_by_path :: proc(path: string, allocator: runtime.Allocator) - } + Read_Directory_Iterator :: struct { f: ^File, impl: Read_Directory_Iterator_Impl, @@ -72,7 +75,6 @@ read_directory_iterator_destroy :: proc(it: ^Read_Directory_Iterator) { _read_directory_iterator_destroy(it) } - // NOTE(bill): `File_Info` does not need to deleted on each iteration. Any copies must be manually copied with `file_info_clone` @(require_results) read_directory_iterator :: proc(it: ^Read_Directory_Iterator) -> (fi: File_Info, index: int, ok: bool) { |