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.c | |
parent | 257227326fe60fe70e80433fd34d1ebcb2f9f623 (diff) | |
download | bfs-da5c9dd34f65989c842cfb831b8592157dd8ed34.tar.xz |
diag: Move enum debug_flags out of ctx.h
Diffstat (limited to 'src/ctx.c')
-rw-r--r-- | src/ctx.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -17,31 +17,6 @@ #include <stdio.h> #include <stdlib.h> -const char *debug_flag_name(enum debug_flags flag) { - switch (flag) { - case DEBUG_COST: - return "cost"; - case DEBUG_EXEC: - return "exec"; - case DEBUG_OPT: - return "opt"; - case DEBUG_RATES: - return "rates"; - case DEBUG_SEARCH: - return "search"; - case DEBUG_STAT: - return "stat"; - case DEBUG_TREE: - return "tree"; - - case DEBUG_ALL: - break; - } - - bfs_bug("Unrecognized debug flag"); - return "???"; -} - struct bfs_ctx *bfs_ctx_new(void) { struct bfs_ctx *ctx = ZALLOC(struct bfs_ctx); if (!ctx) { |