aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/paths.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-28 17:30:04 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-28 17:30:04 -0500
commitfedc4b0ead8f7874120c6e86aaa971a790faea1f (patch)
tree2973f9691b72c97a9cc80fd75c4db8e2e2c59e63 /src/stdlib/paths.c
parent469030e9686e81c520c2ecbeab703a07361f51a4 (diff)
parentcfce376f585e0cd0231e95843617f75bd65b6c07 (diff)
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/stdlib/paths.c')
-rw-r--r--src/stdlib/paths.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c
index 678e143a..0e9a14b9 100644
--- a/src/stdlib/paths.c
+++ b/src/stdlib/paths.c
@@ -99,7 +99,9 @@ Path_t Path$from_str(const char *str) {
}
public
-Path_t Path$from_text(Text_t text) { return Path$from_str(Text$as_c_string(text)); }
+Path_t Path$from_text(Text_t text) {
+ return Path$from_str(Text$as_c_string(text));
+}
public
Path_t Path$expand_home(Path_t path) {
@@ -646,7 +648,9 @@ OptionalPath_t Path$write_unique_bytes(Path_t path, List_t bytes) {
}
public
-OptionalPath_t Path$write_unique(Path_t path, Text_t text) { return Path$write_unique_bytes(path, Text$utf8(text)); }
+OptionalPath_t Path$write_unique(Path_t path, Text_t text) {
+ return Path$write_unique_bytes(path, Text$utf8(text));
+}
public
OptionalPath_t Path$parent(Path_t path) {
@@ -710,7 +714,9 @@ Path_t Path$child(Path_t path, Text_t name) {
}
public
-Path_t Path$sibling(Path_t path, Text_t name) { return Path$child(Path$parent(path), name); }
+Path_t Path$sibling(Path_t path, Text_t name) {
+ return Path$child(Path$parent(path), name);
+}
public
OptionalPath_t Path$with_extension(Path_t path, Text_t extension, bool replace) {
@@ -866,7 +872,9 @@ int Path$print(FILE *f, Path_t path) {
}
public
-const char *Path$as_c_string(Path_t path) { return String(path); }
+const char *Path$as_c_string(Path_t path) {
+ return String(path);
+}
public
Text_t Path$as_text(const void *obj, bool color, const TypeInfo_t *type) {