Skip to content

Commit

Permalink
General clean up of the os2/process_windows.odin code
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Jul 16, 2024
1 parent affe8f7 commit 169fc4d
Show file tree
Hide file tree
Showing 4 changed files with 383 additions and 497 deletions.
8 changes: 3 additions & 5 deletions core/os/os2/process.odin
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package os2

import "core:sync"
import "core:time"
import "base:runtime"
import "core:strings"
import "core:time"

/*
In procedures that explicitly state this as one of the allowed values,
Expand All @@ -20,9 +18,9 @@ args := get_args()
get_args :: proc() -> []string {
result := make([]string, len(runtime.args__), heap_allocator())
for rt_arg, i in runtime.args__ {
result[i] = cast(string) rt_arg
result[i] = string(rt_arg)
}
return result[:]
return result
}

/*
Expand Down
Loading

0 comments on commit 169fc4d

Please sign in to comment.