aboutsummaryrefslogtreecommitdiff
path: root/builtins/bool.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-11 14:53:48 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-11 14:53:48 -0400
commitdb0d5a1c204fb48afa5e5a53cb3c703590645f8f (patch)
treee559f108bb3c198faa3863a32cbfe3402a3f4563 /builtins/bool.h
parent0b5bb32912cfc68c7783548006fca2dc5874eb93 (diff)
Change *:from_text() methods to return optional values and set up CLI
parsing to use that approach
Diffstat (limited to 'builtins/bool.h')
-rw-r--r--builtins/bool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtins/bool.h b/builtins/bool.h
index 5f222c49..d6e5307a 100644
--- a/builtins/bool.h
+++ b/builtins/bool.h
@@ -7,6 +7,7 @@
#include <stdint.h>
#include "types.h"
+#include "optionals.h"
#include "util.h"
#define Bool_t bool
@@ -14,7 +15,7 @@
#define no (Bool_t)false
PUREFUNC Text_t Bool$as_text(const bool *b, bool colorize, const TypeInfo *type);
-bool Bool$from_text(Text_t text, bool *success);
+OptionalBool_t Bool$from_text(Text_t text);
Bool_t Bool$random(double p);
extern const TypeInfo Bool$info;