diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 19:32:30 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 19:32:30 -0500 |
| commit | d46925dbfa8627a6a874545630c2acb6975bfdea (patch) | |
| tree | 2b726ea50adf91b668a24b25d4d9e6ec7f7c2663 /builtins/bool.c | |
| parent | 7355b2f7fe6f5dda2aee8feca025350146ccd0f5 (diff) | |
Cleanup of builtins
Diffstat (limited to 'builtins/bool.c')
| -rw-r--r-- | builtins/bool.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/builtins/bool.c b/builtins/bool.c index 3409ae8f..9af2ed2c 100644 --- a/builtins/bool.c +++ b/builtins/bool.c @@ -9,13 +9,14 @@ #include <sys/param.h> #include <err.h> -#include "types.h" -#include "../util.h" #include "../SipHash/halfsiphash.h" +#include "../util.h" +#include "bool.h" +#include "types.h" extern const void *SSS_HASH_VECTOR; -static CORD Bool__as_str(const bool *b, bool colorize, const TypeInfo *type) +public CORD Bool__as_str(const bool *b, bool colorize, const TypeInfo *type) { (void)type; if (!b) return "Bool"; @@ -25,9 +26,7 @@ static CORD Bool__as_str(const bool *b, bool colorize, const TypeInfo *type) return *b ? "yes" : "no"; } -public struct { - TypeInfo type; -} Bool_type = { +Bool_namespace_t Bool_type = { .type={ .size=sizeof(bool), .align=alignof(bool), |
