From 9f3be47e4327561bda4a3714ddc00fe1ee159e2e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 2 Nov 2024 10:09:24 -0400 Subject: expr: Get rid of the extra list node We can now just use for_arena() to iterate over the allocated bfs_exprs. --- src/ctx.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ctx.h') 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; -- cgit v1.2.3