From b2e752ee3257e967fa4796b39054a7f32629291d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 26 Jul 2024 13:30:24 -0400 Subject: Replace heap_str with GC_strdup --- repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repl.c') 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); -- cgit v1.2.3