|
@@ -316,7 +316,7 @@ file_size :: proc(fd: Handle) -> (i64, Error) {
|
|
|
// "Argv" arguments converted to Odin strings
|
|
|
args := _alloc_command_line_arguments()
|
|
|
|
|
|
-@(require_results)
|
|
|
+@(private, require_results)
|
|
|
_alloc_command_line_arguments :: proc() -> []string {
|
|
|
res := make([]string, len(runtime.args__))
|
|
|
for arg, i in runtime.args__ {
|
|
@@ -325,6 +325,11 @@ _alloc_command_line_arguments :: proc() -> []string {
|
|
|
return res
|
|
|
}
|
|
|
|
|
|
+@(private, fini)
|
|
|
+_delete_command_line_arguments :: proc() {
|
|
|
+ delete(args)
|
|
|
+}
|
|
|
+
|
|
|
@(private, require_results, no_sanitize_memory)
|
|
|
_stat :: proc(path: string) -> (OS_Stat, Error) {
|
|
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|