summaryrefslogtreecommitdiffstats
path: root/src/ctx.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-23 13:35:57 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-23 13:56:03 -0500
commitcdbd5e6fcf1f447b515e717f7d7194471ef714a7 (patch)
tree80e35850febdda9416a1306c8805f2a1da3dabc8 /src/ctx.h
parent9032d107ab759450c21fea8f82865ff48c743132 (diff)
downloadbfs-cdbd5e6fcf1f447b515e717f7d7194471ef714a7.tar.xz
ctx: Switch paths from darray to RESERVE()
Diffstat (limited to 'src/ctx.h')
-rw-r--r--src/ctx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ctx.h b/src/ctx.h
index 1c7df63..75891da 100644
--- a/src/ctx.h
+++ b/src/ctx.h
@@ -27,6 +27,9 @@ struct bfs_ctx {
/** The root paths. */
const char **paths;
+ /** The number of root paths. */
+ size_t npaths;
+
/** The main command line expression. */
struct bfs_expr *expr;
/** An expression for files to filter out. */