Add Error as part of the return values of os2.environ

This commit is contained in:
gingerBill committed 2025-02-28 13:43:50 +00:00
1 parent 94152ca701
commit b3bbb00f1a
6 files changed
+46 -41

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ clear_env :: proc() {
// environ returns a copy of strings representing the environment, in the form "key=value"
// NOTE: the slice of strings and the strings with be allocated using the supplied allocator
@(require_results)
environ :: proc(allocator: runtime.Allocator) -> []string {
environ :: proc(allocator: runtime.Allocator) -> ([]string, Error) {
return _environ(allocator)
}