From a01ee103f9bc0c6defe9ce8cd85651f19f7127bd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 11 Feb 2024 21:29:15 +0000 Subject: Create separate lib for patio runtime --- runtime/src/shed/strings.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 runtime/src/shed/strings.h (limited to 'runtime/src/shed/strings.h') diff --git a/runtime/src/shed/strings.h b/runtime/src/shed/strings.h new file mode 100644 index 00000000..060262fa --- /dev/null +++ b/runtime/src/shed/strings.h @@ -0,0 +1,19 @@ +#ifndef SHED_STRINGS_H +#define SHED_STRINGS_H + +#include + +#include "../patio/patio.h" +#include "./gc.h" + +typedef PatioInt ShedStringLength; + +struct ShedString { + struct ShedGcObjectHeader gc_object_header; + ShedStringLength length; + uint8_t data[]; +}; + +typedef struct ShedString* ShedString; + +#endif -- cgit v1.2.3