Add shims for hashing/equality of langs

This commit is contained in:
Bruce Hill 2024-09-09 16:08:59 -04:00
parent 81bd840423
commit f6487510d4
3 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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