diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 18:09:12 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 18:09:12 -0500 |
| commit | f66f8ad7119207b99f00ea2ea389550ee65db5b3 (patch) | |
| tree | 5b5a7c887b311e3de2f2cb293b1228598c5b9eb1 /stdlib/bytes.h | |
| parent | 4b5e4cd1f21582f5e5fa682ab4e4bff252963468 (diff) | |
Add serialization and deserialization
Diffstat (limited to 'stdlib/bytes.h')
| -rw-r--r-- | stdlib/bytes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/bytes.h b/stdlib/bytes.h index 757f986f..9bd4e1c2 100644 --- a/stdlib/bytes.h +++ b/stdlib/bytes.h @@ -32,9 +32,9 @@ Text_t Byte$hex(Byte_t byte, bool uppercase, bool prefix); typedef struct { Byte_t value; - bool is_null:1; + bool has_value:1; } OptionalByte_t; -#define NONE_BYTE ((OptionalByte_t){.is_null=true}) +#define NONE_BYTE ((OptionalByte_t){.has_value=false}) // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
