aboutsummaryrefslogtreecommitdiff
path: root/repl.c
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 /repl.c
parentcfe46ee393aa3c9a2344a916bccfc4a69d4b8b77 (diff)
Replace heap_str with GC_strdup
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repl.c b/repl.c
index e8cccfbc..068c54cd 100644
--- a/repl.c
+++ b/repl.c
@@ -50,7 +50,7 @@ void repl(void)
|| starts_with(line, "func") || starts_with(line, "struct") || starts_with(line, "lang")) {
printf("\x1b[33;1m..\x1b[m ");
fflush(stdout);
- code = heap_str(line);
+ code = GC_strdup(line);
while ((len=getline(&line, &buf_size, stdin)) >= 0) {
if (len == 1) break;
code = heap_strf("%s%s", code, line);