From 71932628cc3c1957a98e998740b059df9b7dd392 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 4 Aug 2024 10:08:48 +0100 Subject: [PATCH] Add alias --- core/os/os2/dir.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {