diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-22 14:13:26 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-22 14:13:26 -0500 |
commit | 275fbdbe040dc07b2705c92d4cd24ad3f3c7d069 (patch) | |
tree | 0fd997ea04f5ef16c22941d2aabbc01d900073fe /bfs.h | |
parent | 59f46665aa10eed0776e93dc5f67368a3b8b27e3 (diff) | |
download | bfs-275fbdbe040dc07b2705c92d4cd24ad3f3c7d069.tar.xz |
Implement -D stat.
Diffstat (limited to 'bfs.h')
-rw-r--r-- | bfs.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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; |