aboutsummaryrefslogtreecommitdiff
path: root/builtins/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/path.h')
-rw-r--r--builtins/path.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtins/path.h b/builtins/path.h
index f3d51f81..c5acbf34 100644
--- a/builtins/path.h
+++ b/builtins/path.h
@@ -11,9 +11,10 @@
#define Path_t Text_t
#define Path(text) ((Path_t)Text(text))
-#define Paths(...) ((Path_t)Texts(__VA_ARGS__))
+#define Paths(...) Path$concat(__VA_ARGS__)
-PUREFUNC Path_t Path$concat(Path_t a, Path_t b);
+Path_t Path$_concat(int n, Path_t items[n]);
+#define Path$concat(...) Path$_concat(sizeof((Path_t[]){__VA_ARGS__})/sizeof(Path_t), (Path_t[]){__VA_ARGS__})
PUREFUNC Path_t Path$escape_text(Text_t text);
Path_t Path$resolved(Path_t path, Path_t relative_to);
Path_t Path$relative(Path_t path, Path_t relative_to);