summaryrefslogtreecommitdiffstats
path: root/src/diag.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-23 11:11:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-23 11:11:35 -0400
commit25b4e40cd32175f39b94ffaa034bd46b428d8545 (patch)
tree8d580896f0c3bed403d379ef56ceaf361adf6c57 /src/diag.c
parentf48f8346ff96dc2183716104d5181b894451acc8 (diff)
downloadbfs-25b4e40cd32175f39b94ffaa034bd46b428d8545.tar.xz
expr: New for_expr macro
Diffstat (limited to 'src/diag.c')
-rw-r--r--src/diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diag.c b/src/diag.c
index 3594b84..ccafd98 100644
--- a/src/diag.c
+++ b/src/diag.c
@@ -159,7 +159,7 @@ static bool highlight_expr_recursive(const struct bfs_ctx *ctx, const struct bfs
}
}
- for (struct bfs_expr *child = bfs_expr_children(expr); child; child = child->next) {
+ for_expr (child, expr) {
ret |= highlight_expr_recursive(ctx, child, args);
}