aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/paths.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-17 20:35:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-17 20:35:09 -0400
commitf4e38fd061a158ecb94881273c6db6e6a332f61d (patch)
tree9179cb312dcc1b24d806dfb65694c25580d1ed8b /src/stdlib/paths.h
parent602cedd03b0c3d6ef176efafb08f51bde9bfe543 (diff)
Switch from using dollar signs as namespace delimiters to using 々, ヽ, andunicode-identifiers
〇.
Diffstat (limited to 'src/stdlib/paths.h')
-rw-r--r--src/stdlib/paths.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/src/stdlib/paths.h b/src/stdlib/paths.h
index 3a9cdef7..4ae78cd5 100644
--- a/src/stdlib/paths.h
+++ b/src/stdlib/paths.h
@@ -9,67 +9,67 @@
#include "datatypes.h"
#include "optionals.h"
-Path_t Path$from_str(const char *str);
-Path_t Path$from_text(Text_t text);
-// int Path$print(FILE *f, Path_t path);
-const char *Path$as_c_string(Path_t path);
-#define Path(str) Path$from_str(str)
-Path_t Path$_concat(int n, Path_t items[n]);
-#define Path$concat(...) Path$_concat((int)sizeof((Path_t[]){__VA_ARGS__})/sizeof(Path_t), ((Path_t[]){__VA_ARGS__}))
-Path_t Path$resolved(Path_t path, Path_t relative_to);
-Path_t Path$relative_to(Path_t path, Path_t relative_to);
-Path_t Path$expand_home(Path_t path);
-bool Path$exists(Path_t path);
-bool Path$is_file(Path_t path, bool follow_symlinks);
-bool Path$is_directory(Path_t path, bool follow_symlinks);
-bool Path$is_pipe(Path_t path, bool follow_symlinks);
-bool Path$is_socket(Path_t path, bool follow_symlinks);
-bool Path$is_symlink(Path_t path);
-bool Path$can_read(Path_t path);
-bool Path$can_write(Path_t path);
-bool Path$can_execute(Path_t path);
-OptionalInt64_t Path$modified(Path_t path, bool follow_symlinks);
-OptionalInt64_t Path$accessed(Path_t path, bool follow_symlinks);
-OptionalInt64_t Path$changed(Path_t path, bool follow_symlinks);
-void Path$write(Path_t path, Text_t text, int permissions);
-void Path$write_bytes(Path_t path, List_t bytes, int permissions);
-void Path$append(Path_t path, Text_t text, int permissions);
-void Path$append_bytes(Path_t path, List_t bytes, int permissions);
-OptionalText_t Path$read(Path_t path);
-OptionalList_t Path$read_bytes(Path_t path, OptionalInt_t limit);
-void Path$set_owner(Path_t path, OptionalText_t owner, OptionalText_t group, bool follow_symlinks);
-OptionalText_t Path$owner(Path_t path, bool follow_symlinks);
-OptionalText_t Path$group(Path_t path, bool follow_symlinks);
-void Path$remove(Path_t path, bool ignore_missing);
-void Path$create_directory(Path_t path, int permissions);
-List_t Path$children(Path_t path, bool include_hidden);
-List_t Path$files(Path_t path, bool include_hidden);
-List_t Path$subdirectories(Path_t path, bool include_hidden);
-Path_t Path$unique_directory(Path_t path);
-Path_t Path$write_unique(Path_t path, Text_t text);
-Path_t Path$write_unique_bytes(Path_t path, List_t bytes);
-Path_t Path$parent(Path_t path);
-Text_t Path$base_name(Path_t path);
-Text_t Path$extension(Path_t path, bool full);
-bool Path$has_extension(Path_t path, Text_t extension);
-Path_t Path$child(Path_t path, Text_t name);
-Path_t Path$sibling(Path_t path, Text_t name);
-Path_t Path$with_extension(Path_t path, Text_t extension, bool replace);
-Path_t Path$current_dir(void);
-Closure_t Path$by_line(Path_t path);
-List_t Path$glob(Path_t path);
+Path_t Pathヽfrom_str(const char *str);
+Path_t Pathヽfrom_text(Text_t text);
+// int Pathヽprint(FILE *f, Path_t path);
+const char *Pathヽas_c_string(Path_t path);
+#define Path(str) Pathヽfrom_str(str)
+Path_t Pathヽ_concat(int n, Path_t items[n]);
+#define Pathヽconcat(...) Pathヽ_concat((int)sizeof((Path_t[]){__VA_ARGS__})/sizeof(Path_t), ((Path_t[]){__VA_ARGS__}))
+Path_t Pathヽresolved(Path_t path, Path_t relative_to);
+Path_t Pathヽrelative_to(Path_t path, Path_t relative_to);
+Path_t Pathヽexpand_home(Path_t path);
+bool Pathヽexists(Path_t path);
+bool Pathヽis_file(Path_t path, bool follow_symlinks);
+bool Pathヽis_directory(Path_t path, bool follow_symlinks);
+bool Pathヽis_pipe(Path_t path, bool follow_symlinks);
+bool Pathヽis_socket(Path_t path, bool follow_symlinks);
+bool Pathヽis_symlink(Path_t path);
+bool Pathヽcan_read(Path_t path);
+bool Pathヽcan_write(Path_t path);
+bool Pathヽcan_execute(Path_t path);
+OptionalInt64_t Pathヽmodified(Path_t path, bool follow_symlinks);
+OptionalInt64_t Pathヽaccessed(Path_t path, bool follow_symlinks);
+OptionalInt64_t Pathヽchanged(Path_t path, bool follow_symlinks);
+void Pathヽwrite(Path_t path, Text_t text, int permissions);
+void Pathヽwrite_bytes(Path_t path, List_t bytes, int permissions);
+void Pathヽappend(Path_t path, Text_t text, int permissions);
+void Pathヽappend_bytes(Path_t path, List_t bytes, int permissions);
+OptionalText_t Pathヽread(Path_t path);
+OptionalList_t Pathヽread_bytes(Path_t path, OptionalInt_t limit);
+void Pathヽset_owner(Path_t path, OptionalText_t owner, OptionalText_t group, bool follow_symlinks);
+OptionalText_t Pathヽowner(Path_t path, bool follow_symlinks);
+OptionalText_t Pathヽgroup(Path_t path, bool follow_symlinks);
+void Pathヽremove(Path_t path, bool ignore_missing);
+void Pathヽcreate_directory(Path_t path, int permissions);
+List_t Pathヽchildren(Path_t path, bool include_hidden);
+List_t Pathヽfiles(Path_t path, bool include_hidden);
+List_t Pathヽsubdirectories(Path_t path, bool include_hidden);
+Path_t Pathヽunique_directory(Path_t path);
+Path_t Pathヽwrite_unique(Path_t path, Text_t text);
+Path_t Pathヽwrite_unique_bytes(Path_t path, List_t bytes);
+Path_t Pathヽparent(Path_t path);
+Text_t Pathヽbase_name(Path_t path);
+Text_t Pathヽextension(Path_t path, bool full);
+bool Pathヽhas_extension(Path_t path, Text_t extension);
+Path_t Pathヽchild(Path_t path, Text_t name);
+Path_t Pathヽsibling(Path_t path, Text_t name);
+Path_t Pathヽwith_extension(Path_t path, Text_t extension, bool replace);
+Path_t Pathヽcurrent_dir(void);
+Closure_t Pathヽby_line(Path_t path);
+List_t Pathヽglob(Path_t path);
-uint64_t Path$hash(const void *obj, const TypeInfo_t*);
-int32_t Path$compare(const void *a, const void *b, const TypeInfo_t *type);
-bool Path$equal(const void *a, const void *b, const TypeInfo_t *type);
-bool Path$equal_values(Path_t a, Path_t b);
-Text_t Path$as_text(const void *obj, bool color, const TypeInfo_t *type);
-bool Path$is_none(const void *obj, const TypeInfo_t *type);
-void Path$serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type);
-void Path$deserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t *type);
+uint64_t Pathヽhash(const void *obj, const TypeInfo_t*);
+int32_t Pathヽcompare(const void *a, const void *b, const TypeInfo_t *type);
+bool Pathヽequal(const void *a, const void *b, const TypeInfo_t *type);
+bool Pathヽequal_values(Path_t a, Path_t b);
+Text_t Pathヽas_text(const void *obj, bool color, const TypeInfo_t *type);
+bool Pathヽis_none(const void *obj, const TypeInfo_t *type);
+void Pathヽserialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type);
+void Pathヽdeserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t *type);
-extern const TypeInfo_t Path$info;
-extern const TypeInfo_t PathType$info;
+extern const TypeInfo_t Pathヽinfo;
+extern const TypeInfo_t PathTypeヽinfo;
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0