From 006d465c265246fa84e7926f2f0d3fe0ac19b2e2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 13:41:42 +0000 Subject: Make strings GC objects --- runtime/src/strings.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/src/strings.h') diff --git a/runtime/src/strings.h b/runtime/src/strings.h index 3e964c71..d299a098 100644 --- a/runtime/src/strings.h +++ b/runtime/src/strings.h @@ -4,10 +4,12 @@ #include #include "./patio/patio.h" +#include "./gc.h" typedef PatioInt ShedStringLength; struct ShedString { + struct ShedGcObjectHeader gc_object_header; ShedStringLength length; uint8_t data[]; }; -- cgit v1.2.3