From 4ada155b930cb5fb96493dff3a5af8809da3b214 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 10 Jan 2024 16:36:53 -0800 Subject: add comments in both stem and also in my c code --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 7e9f5d9..3b1f53f 100644 --- a/src/main.c +++ b/src/main.c @@ -49,7 +49,7 @@ int main(int argc, char **argv) { ssize_t bytes_read = getdelim(&INBUF, &len, '\0', FP); fclose(FP); - PARSER = init_parser(INBUF); + PARSER = parser_pp(INBUF); STACK = init_array(10); WORD_TABLE = init_ht(500); EVAL_STACK = init_array(10); @@ -65,7 +65,7 @@ int main(int argc, char **argv) { eval(v); } - free(INBUF); + free(PARSER->source); ht_free(WORD_TABLE, value_free); ht_free(FLIT, func_free); ht_free(OBJ_TABLE, custom_free); -- cgit