aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-26 13:30:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-26 13:30:24 -0400
commitb2e752ee3257e967fa4796b39054a7f32629291d (patch)
treee87ef2581de45301571b0c9d79bad78aaa4677ae /ast.h
parentcfe46ee393aa3c9a2344a916bccfc4a69d4b8b77 (diff)
Replace heap_str with GC_strdup
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.h b/ast.h
index be37c8cb..976a47dc 100644
--- a/ast.h
+++ b/ast.h
@@ -16,7 +16,7 @@
.tag=ast_tag, .__data.ast_tag={__VA_ARGS__}))
#define FakeAST(ast_tag, ...) (new(ast_t, .tag=ast_tag, .__data.ast_tag={__VA_ARGS__}))
#define WrapAST(ast, ast_tag, ...) (new(ast_t, .file=(ast)->file, .start=(ast)->start, .end=(ast)->end, .tag=ast_tag, .__data.ast_tag={__VA_ARGS__}))
-#define TextAST(ast, _str) WrapAST(ast, TextLiteral, .str=heap_str(_str))
+#define TextAST(ast, _str) WrapAST(ast, TextLiteral, .str=GC_strdup(_str))
struct binding_s;
typedef struct type_ast_s type_ast_t;