aboutsummaryrefslogtreecommitdiff
path: root/stdlib/optionals.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-28 14:17:17 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-28 14:17:17 -0400
commit8f717fe9f498642ca6f857ef329d73760b98d44c (patch)
treedb30b6e2d53d38fd29b5f770f34234367bc6e068 /stdlib/optionals.c
parent794c1343ba36d62e6dcb4df9a51e89e2c4f42b74 (diff)
Redefine NULL_* values as #defines so they can be constant initializers
Diffstat (limited to 'stdlib/optionals.c')
-rw-r--r--stdlib/optionals.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/stdlib/optionals.c b/stdlib/optionals.c
index 1dc770a7..717a1e0c 100644
--- a/stdlib/optionals.c
+++ b/stdlib/optionals.c
@@ -11,13 +11,6 @@
#include "text.h"
#include "util.h"
-public const Array_t NULL_ARRAY = {.length=-1};
-public const OptionalBool_t NULL_BOOL = 2;
-public const Int_t NULL_INT = {.small=0};
-public const Table_t NULL_TABLE = {.entries.length=-1};
-public const Closure_t NULL_CLOSURE = {.fn=NULL};
-public const Text_t NULL_TEXT = {.length=-1};
-
public PUREFUNC bool is_null(const void *obj, const TypeInfo *non_optional_type)
{
if (non_optional_type == &Int$info)