diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-02-11 21:29:15 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-02-11 21:29:15 +0000 |
| commit | a01ee103f9bc0c6defe9ce8cd85651f19f7127bd (patch) | |
| tree | 8634fd33dde74b4aab1519e1b61bc3343d99606f /runtime/src/shed/strings.h | |
| parent | 3d4e3f4a54d128a2a280b5adc921f3d95fb963bb (diff) | |
Create separate lib for patio runtime
Diffstat (limited to 'runtime/src/shed/strings.h')
| -rw-r--r-- | runtime/src/shed/strings.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <stdint.h> + +#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 |
