]> git.mdlowis.com Git - proto/cerise-c.git/commitdiff
fix broken string data structure
authorMike Lowis <mike.lowis@gentex.com>
Mon, 17 Jun 2024 18:43:13 +0000 (14:43 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Mon, 17 Jun 2024 18:43:13 +0000 (14:43 -0400)
runtime.h

index c18c973975caca71550942a9829ca4b6e667c789..67e24e138f34b43c7522895178c2f33f059d83a5 100644 (file)
--- 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[];