diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-10 16:36:53 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-10 16:36:53 -0800 |
commit | 4ada155b930cb5fb96493dff3a5af8809da3b214 (patch) | |
tree | db723cecb55c51e08b4ae6f865046d892d720304 /src/main.c | |
parent | f4252fb4c1b12e4318f98e4a1936842e8b691ce0 (diff) |
add comments in both stem and also in my c code
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |