summaryrefslogtreecommitdiffstats
path: root/src/ctx.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-11-02 10:09:24 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-11-04 12:26:38 -0500
commit9f3be47e4327561bda4a3714ddc00fe1ee159e2e (patch)
treee7cf5864626f8bfd46a041ec9fbe46067591ee03 /src/ctx.h
parent6e961567434f50abf850963873988c3365098681 (diff)
downloadbfs-9f3be47e4327561bda4a3714ddc00fe1ee159e2e.tar.xz
expr: Get rid of the extra list node
We can now just use for_arena() to iterate over the allocated bfs_exprs.
Diffstat (limited to 'src/ctx.h')
-rw-r--r--src/ctx.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ctx.h b/src/ctx.h
index be6e2af..db7556f 100644
--- a/src/ctx.h
+++ b/src/ctx.h
@@ -39,10 +39,8 @@ struct bfs_ctx {
struct bfs_expr *expr;
/** An expression for files to filter out. */
struct bfs_expr *exclude;
- /** A list of allocated expressions. */
- struct bfs_exprs expr_list;
/** bfs_expr arena. */
- struct arena expr_arena;
+ struct arena exprs;
/** -mindepth option. */
int mindepth;