summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-05 14:18:53 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-05 14:18:53 -0500
commitd1e532ed839c1b2be093c88006fcf4cd3d11805d (patch)
tree192167ec829c5dbd4e73bc5abce535127c481343 /src/eval.c
parentd6a1b97b0eece42bb18a171ccdfcec7082d5f2d0 (diff)
downloadbfs-d1e532ed839c1b2be093c88006fcf4cd3d11805d.tar.xz
expr: Rename bfs_expr_has_children() to _is_parent()
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 4c9d807..e3257ce 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -387,7 +387,7 @@ static int eval_exec_finish(const struct bfs_expr *expr, const struct bfs_ctx *c
}
ret = -1;
}
- } else if (bfs_expr_has_children(expr)) {
+ } else if (bfs_expr_is_parent(expr)) {
if (expr->lhs && eval_exec_finish(expr->lhs, ctx) != 0) {
ret = -1;
}
@@ -1557,7 +1557,7 @@ static bool eval_must_buffer(const struct bfs_expr *expr) {
return true;
}
- if (bfs_expr_has_children(expr)) {
+ if (bfs_expr_is_parent(expr)) {
if (expr->lhs && eval_must_buffer(expr->lhs)) {
return true;
}