diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-12 13:09:11 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-12 13:09:11 -0400 |
commit | da5c9dd34f65989c842cfb831b8592157dd8ed34 (patch) | |
tree | 06571b02c096ef6fe2e0c785253b0b151731e205 /src/ctx.h | |
parent | 257227326fe60fe70e80433fd34d1ebcb2f9f623 (diff) | |
download | bfs-da5c9dd34f65989c842cfb831b8592157dd8ed34.tar.xz |
diag: Move enum debug_flags out of ctx.h
Diffstat (limited to 'src/ctx.h')
-rw-r--r-- | src/ctx.h | 28 |
1 files changed, 1 insertions, 27 deletions
@@ -10,39 +10,13 @@ #include "bftw.h" #include "config.h" +#include "diag.h" #include "trie.h" #include <stddef.h> #include <sys/resource.h> #include <time.h> /** - * Various debugging flags. - */ -enum debug_flags { - /** Print cost estimates. */ - DEBUG_COST = 1 << 0, - /** Print executed command details. */ - DEBUG_EXEC = 1 << 1, - /** Print optimization details. */ - DEBUG_OPT = 1 << 2, - /** Print rate information. */ - DEBUG_RATES = 1 << 3, - /** Trace the filesystem traversal. */ - DEBUG_SEARCH = 1 << 4, - /** Trace all stat() calls. */ - DEBUG_STAT = 1 << 5, - /** Print the parse tree. */ - DEBUG_TREE = 1 << 6, - /** All debug flags. */ - DEBUG_ALL = (1 << 7) - 1, -}; - -/** - * Convert a debug flag to a string. - */ -const char *debug_flag_name(enum debug_flags flag); - -/** * The execution context for bfs. */ struct bfs_ctx { |