diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-23 11:11:35 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-23 11:11:35 -0400 |
commit | 25b4e40cd32175f39b94ffaa034bd46b428d8545 (patch) | |
tree | 8d580896f0c3bed403d379ef56ceaf361adf6c57 /src/parse.c | |
parent | f48f8346ff96dc2183716104d5181b894451acc8 (diff) | |
download | bfs-25b4e40cd32175f39b94ffaa034bd46b428d8545.tar.xz |
expr: New for_expr macro
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index 8a8eb41..5dd85de 100644 --- a/src/parse.c +++ b/src/parse.c @@ -3458,7 +3458,7 @@ static void dump_expr_multiline(const struct bfs_ctx *ctx, enum debug_flags flag ++rparens; } else { cfprintf(ctx->cerr, "(${red}%s${rs}\n", expr->argv[0]); - for (struct bfs_expr *child = bfs_expr_children(expr); child; child = child->next) { + for_expr (child, expr) { int parens = child->next ? 0 : rparens + 1; dump_expr_multiline(ctx, flag, child, indent + 1, parens); } |