update core:filepath's clean, join and split_list to return optional Allocator_Errors
This commit is contained in:
1 parent
0f052dbde7
commit
07a9c69714
5 files changed
+45
-37
No files matched your search
@@ -2071,7 +2071,10 @@ replace :: proc(s, old, new: string, n: int, allocator := context.allocator, loc
|
||||
}
|
||||
|
||||
|
||||
t := make([]byte, len(s) + byte_count*(len(new) - len(old)), allocator, loc)
|
||||
t, err := make([]byte, len(s) + byte_count*(len(new) - len(old)), allocator, loc)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
was_allocation = true
|
||||
|
||||
w := 0
|
||||
|
||||
Reference in new issue
Block a user