aboutsummaryrefslogtreecommitdiff
path: root/builtins/path.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-09 14:48:33 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-09 14:48:33 -0400
commit6ea6aadd963a216e4e321e500515846201d213a5 (patch)
treeea85ac24f6dd479cd2f052b63c65dbe3e253b23e /builtins/path.h
parent43c595cafe3a09c52a098774671bb55c7e80f128 (diff)
Correctly clean up CLI args that are paths
Diffstat (limited to 'builtins/path.h')
-rw-r--r--builtins/path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/path.h b/builtins/path.h
index c5acbf34..06bc2ec6 100644
--- a/builtins/path.h
+++ b/builtins/path.h
@@ -13,6 +13,7 @@
#define Path(text) ((Path_t)Text(text))
#define Paths(...) Path$concat(__VA_ARGS__)
+Path_t Path$cleanup(Path_t path);
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);