From 275fbdbe040dc07b2705c92d4cd24ad3f3c7d069 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 22 Feb 2016 14:13:26 -0500 Subject: Implement -D stat. --- bfs.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'bfs.h') diff --git a/bfs.h b/bfs.h index b365a53..a80ff17 100644 --- a/bfs.h +++ b/bfs.h @@ -48,6 +48,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. */ @@ -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; -- cgit v1.2.3