aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/strings.h
blob: d299a09851be70bcc4b3dfbbb14db5e04b5fdb41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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