Compare commits
No commits in common. "5492aa6f63a2d008e13cadabaf0f79ba8785be70" and "3fc90383a90f7a636eabd5f03e08a41a60e81f26" have entirely different histories.
5492aa6f63
...
3fc90383a9
@ -919,8 +919,6 @@ libab_result _interpreter_run(struct interpreter_state* state, libab_tree* tree,
|
|||||||
libab_ref_get(scope), tree->string_value, OPERATOR_POSTFIX);
|
libab_ref_get(scope), tree->string_value, OPERATOR_POSTFIX);
|
||||||
result = _interpreter_call_operator(state, to_call, into, scope,
|
result = _interpreter_call_operator(state, to_call, into, scope,
|
||||||
vec_index(&tree->children, 0));
|
vec_index(&tree->children, 0));
|
||||||
} else {
|
|
||||||
libab_get_unit_value(state->ab, into);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (needs_scope) {
|
if (needs_scope) {
|
||||||
|
@ -48,8 +48,7 @@ int _tree_foreach_free(void* data, va_list args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int _tree_needs_free(libab_tree* tree) {
|
int _tree_needs_free(libab_tree* tree) {
|
||||||
return ((tree->variant == TREE_FUN && --(tree->int_value) == 0) |
|
return ((tree->variant == TREE_FUN && --tree->int_value) | (tree->variant != TREE_FUN));
|
||||||
(tree->variant != TREE_FUN));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void libab_tree_free_recursive(libab_tree* tree) {
|
void libab_tree_free_recursive(libab_tree* tree) {
|
||||||
|
Loading…
Reference in New Issue
Block a user