aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/datatypes.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-07 19:02:13 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-07 19:02:13 -0500
commit09942b27ae6fd7e7d394b2d251ef77c8a6f69e07 (patch)
tree49440d4bf059874b7f84462f9dfa96d7de9edfc7 /src/stdlib/datatypes.h
parent85d1507d8b7e0139135e040b7b4b23c02097a155 (diff)
Rename `Empty()` -> `Present()` for set-like tables
Diffstat (limited to 'src/stdlib/datatypes.h')
-rw-r--r--src/stdlib/datatypes.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stdlib/datatypes.h b/src/stdlib/datatypes.h
index d51db8ab..fbd2ce73 100644
--- a/src/stdlib/datatypes.h
+++ b/src/stdlib/datatypes.h
@@ -69,18 +69,18 @@ typedef struct table_s {
struct table_s *fallback;
} Table_t;
-typedef struct Empty$$struct {
-} Empty$$type;
+typedef struct Present$$struct {
+} Present$$type;
-#define EMPTY_STRUCT ((Empty$$type){})
+#define PRESENT_STRUCT ((Present$$type){})
typedef struct {
bool has_value;
- Empty$$type value;
-} $OptionalEmpty$$type;
+ Present$$type value;
+} $OptionalPresent$$type;
-#define NONE_EMPTY_STRUCT (($OptionalEmpty$$type){.has_value = false})
-#define OPTIONAL_EMPTY_STRUCT (($OptionalEmpty$$type){.has_value = true})
+#define NONE_PRESENT_STRUCT (($OptionalPresent$$type){.has_value = false})
+#define OPTIONAL_PRESENT_STRUCT (($OptionalPresent$$type){.has_value = true})
typedef struct {
void *fn, *userdata;