aboutsummaryrefslogtreecommitdiff
path: root/src/builtins.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-01-10 16:36:53 -0800
committerPreston Pan <preston@nullring.xyz>2024-01-10 16:36:53 -0800
commit4ada155b930cb5fb96493dff3a5af8809da3b214 (patch)
treedb723cecb55c51e08b4ae6f865046d892d720304 /src/builtins.c
parentf4252fb4c1b12e4318f98e4a1936842e8b691ce0 (diff)
add comments in both stem and also in my c code
Diffstat (limited to 'src/builtins.c')
-rw-r--r--src/builtins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builtins.c b/src/builtins.c
index 31981c3..eb4b521 100644
--- a/src/builtins.c
+++ b/src/builtins.c
@@ -327,7 +327,7 @@ void strquote(value_t *v) {
retval->quote = init_array(10);
char *s = malloc(strlen(v1->str_word->value) + 1);
strcpy(s, v1->str_word->value);
- parser_t *p = init_parser(s);
+ parser_t *p = parser_pp(s);
value_t *cur;
while (1) {
cur = parser_get_next(p);
@@ -405,7 +405,7 @@ void stemexit(value_t *v) {
ht_free(WORD_TABLE, value_free);
ht_free(FLIT, func_free);
array_free(STACK);
- free(INBUF);
+ free(PARSER->source);
free(PARSER);
array_free(EVAL_STACK);
ht_free(OBJ_TABLE, func_free);