summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-22 14:13:26 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-22 14:13:26 -0500
commit275fbdbe040dc07b2705c92d4cd24ad3f3c7d069 (patch)
tree0fd997ea04f5ef16c22941d2aabbc01d900073fe /bfs.h
parent59f46665aa10eed0776e93dc5f67368a3b8b27e3 (diff)
downloadbfs-275fbdbe040dc07b2705c92d4cd24ad3f3c7d069.tar.xz
Implement -D stat.
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/bfs.h b/bfs.h
index b365a53..a80ff17 100644
--- a/bfs.h
+++ b/bfs.h
@@ -49,6 +49,14 @@ struct eval_state;
typedef bool eval_fn(const struct expr *expr, struct eval_state *state);
/**
+ * Various debugging flags.
+ */
+enum debugflags {
+ /** Trace all stat() calls. */
+ DEBUG_STAT = 1 << 0,
+};
+
+/**
* The parsed command line.
*/
struct cmdline {
@@ -70,7 +78,10 @@ struct cmdline {
int maxdepth;
/** bftw() flags. */
- int flags;
+ enum bftw_flags flags;
+
+ /** Debugging flags. */
+ enum debugflags debug;
/** The command line expression. */
struct expr *expr;