aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-09 16:08:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-09 16:08:59 -0400
commitf6487510d4fdc872424e3bec2b5aca251dee0056 (patch)
tree1857a1d49d36d110b49b1ff48a170de8dc9367b7
parent81bd84042352724f60b2c7fe5394f069b9a75880 (diff)
Add shims for hashing/equality of langs
-rw-r--r--builtins/path.h4
-rw-r--r--builtins/shell.h4
-rw-r--r--builtins/text.h5
3 files changed, 13 insertions, 0 deletions
diff --git a/builtins/path.h b/builtins/path.h
index 06bc2ec6..4ee1b0a7 100644
--- a/builtins/path.h
+++ b/builtins/path.h
@@ -39,6 +39,10 @@ Path_t Path$parent(Path_t path);
Text_t Path$base_name(Path_t path);
Text_t Path$extension(Path_t path, bool full);
+#define Path$hash Text$hash
+#define Path$compare Text$compare
+#define Path$equal Text$equal
+
extern const TypeInfo Path$info;
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
diff --git a/builtins/shell.h b/builtins/shell.h
index 0429d496..cf102c28 100644
--- a/builtins/shell.h
+++ b/builtins/shell.h
@@ -16,6 +16,10 @@
Text_t Shell$run(Shell_t command, int32_t *status);
Shell_t Shell$escape_text(Text_t text);
+#define Shell$hash Text$hash
+#define Shell$compare Text$compare
+#define Shell$equal Text$equal
+
extern const TypeInfo Shell$info;
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
diff --git a/builtins/text.h b/builtins/text.h
index 2c19f2f2..e35c193f 100644
--- a/builtins/text.h
+++ b/builtins/text.h
@@ -64,6 +64,11 @@ extern const TypeInfo Text$info;
#define Pattern(text) ((Pattern_t)Text(text))
#define Patterns(...) ((Pattern_t)Texts(__VA_ARGS__))
Pattern_t Pattern$escape_text(Text_t text);
+
+#define Pattern$hash Text$hash
+#define Pattern$compare Text$compare
+#define Pattern$equal Text$equal
+
extern const TypeInfo Pattern$info;
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0