diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 15:12:06 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 15:12:06 +0000 |
| commit | 20a95051ce8fe440bc2ae5078bf3425ef1875004 (patch) | |
| tree | 81639d9a43336748fb51ae3ae2aad6f031812af4 /runtime/src/strings.c | |
| parent | 0bb62e06106eca12a8de92beedfe7000269199cb (diff) | |
Allocate strings using GC alloc
Diffstat (limited to 'runtime/src/strings.c')
| -rw-r--r-- | runtime/src/strings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/strings.c b/runtime/src/strings.c index 9fd545f0..919e3daa 100644 --- a/runtime/src/strings.c +++ b/runtime/src/strings.c @@ -1,8 +1,8 @@ -#include "./alloc.h" +#include "./gc.h" #include "./strings.h" ShedString shed__runtime__string_alloc(ShedStringLength length) { - return shed__runtime__alloc(sizeof(struct ShedString) + length); + return shed__runtime__gc_alloc(sizeof(struct ShedString) + length, 0, 0); } ShedString shed__runtime__string_add(ShedString left, ShedString right) { |
