diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-26 13:30:24 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-26 13:30:24 -0400 |
| commit | b2e752ee3257e967fa4796b39054a7f32629291d (patch) | |
| tree | e87ef2581de45301571b0c9d79bad78aaa4677ae /ast.h | |
| parent | cfe46ee393aa3c9a2344a916bccfc4a69d4b8b77 (diff) | |
Replace heap_str with GC_strdup
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
