Use long-form names and alias with short-form UNIX-like names

This commit is contained in:
gingerBill
2024-01-29 13:33:39 +00:00
parent 338793b68e
commit a626adac8e
9 changed files with 57 additions and 37 deletions
+5 -3
View File
@@ -2,14 +2,16 @@ package os2
import "base:runtime"
create_temp :: proc(dir, pattern: string) -> (^File, Error) {
create_temp_file :: proc(dir, pattern: string) -> (^File, Error) {
return _create_temp(dir, pattern)
}
mkdir_temp :: proc(dir, pattern: string, allocator: runtime.Allocator) -> (string, Error) {
mkdir_temp :: make_directory_temp
make_directory_temp :: proc(dir, pattern: string, allocator: runtime.Allocator) -> (string, Error) {
return _mkdir_temp(dir, pattern, allocator)
}
temp_dir :: proc(allocator: runtime.Allocator) -> (string, Error) {
temp_dir :: temp_directory
temp_directory :: proc(allocator: runtime.Allocator) -> (string, Error) {
return _temp_dir(allocator)
}