[path/filepath] Change join() to take a []string instead of varargs

This makes passing an allocator easier, as you no longer have to resort to
named arguments:
Before:
  `join(a, b, c)` became `join(elems={a, b, c}, allocator=ally)`
After:
  `join({a, b, c})` becomes `join({a, b, c}, ally)`
This commit is contained in:
Tetralux
2022-05-21 04:48:06 +00:00
parent 6e7179d8f3
commit 06884da42b
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ _glob :: proc(dir, pattern: string, matches: ^[dynamic]string, allocator := cont
n := fi.name
matched := match(pattern, n) or_return
if matched {
append(&m, join(dir, n))
append(&m, join({dir, n}))
}
}
return