From: Mike Lowis Date: Mon, 17 Jun 2024 18:43:13 +0000 (-0400) Subject: fix broken string data structure X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=bf0714ea2ae6ce229dc695d05a41bf50d1b6c4fa;p=proto%2Fcerise-c.git fix broken string data structure --- diff --git a/runtime.h b/runtime.h index c18c973..67e24e1 100644 --- a/runtime.h +++ b/runtime.h @@ -50,6 +50,11 @@ typedef union { double as_double; } Value; +typedef struct { + uint64_t length; + uint8_t bytes[]; +} String; + typedef struct { uint64_t length; Value values[];