From f66f8ad7119207b99f00ea2ea389550ee65db5b3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 29 Nov 2024 18:09:12 -0500 Subject: Add serialization and deserialization --- stdlib/bytes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/bytes.h') 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 -- cgit v1.2.3