aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-28 02:07:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-28 02:07:37 -0400
commit794c1343ba36d62e6dcb4df9a51e89e2c4f42b74 (patch)
treee1f290f94c77c4a9875afc3b3f3cf5a19c798b4c
parente63372452e2241d4839ead2dd1bcab2f75f51e04 (diff)
Define some optional types
-rw-r--r--stdlib/datatypes.h1
-rw-r--r--stdlib/shell.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/datatypes.h b/stdlib/datatypes.h
index 8c13d3c4..4bb6beb3 100644
--- a/stdlib/datatypes.h
+++ b/stdlib/datatypes.h
@@ -87,5 +87,6 @@ typedef struct Text_s {
} Text_t;
#define Pattern_t Text_t
+#define OptionalPattern_t Text_t
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
diff --git a/stdlib/shell.h b/stdlib/shell.h
index 14a086ef..fd182253 100644
--- a/stdlib/shell.h
+++ b/stdlib/shell.h
@@ -12,6 +12,7 @@
#include "types.h"
#define Shell_t Text_t
+#define OptionalShell_t Text_t
#define Shell(text) ((Shell_t)Text(text))
#define Shells(...) ((Shell_t)Texts(__VA_ARGS__))