summaryrefslogtreecommitdiffabout
path: root/src/gdbmdefs.h
Side-by-side diff
Diffstat (limited to 'src/gdbmdefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gdbmdefs.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gdbmdefs.h b/src/gdbmdefs.h
index d940c5d..4ae646f 100644
--- a/src/gdbmdefs.h
+++ b/src/gdbmdefs.h
@@ -322,29 +322,15 @@ struct gdbm_file_info
GDBM_DEBUG((m) | GDBM_DEBUG_ERR, "%s: error " #ec "%s", \
((dbf) ? ((GDBM_FILE)dbf)->name : "<nodbf>"), \
((fatal) ? " (needs recovery)" : "")); \
gdbm_set_errno(dbf, ec, fatal); \
} \
while (0)
-
-typedef int (*gdbm_debug_hook) (char const *, int, char const *, void *);
-extern void _gdbm_debug_hook_install (char const *, gdbm_debug_hook, void *);
-extern void _gdbm_debug_hook_remove (char const *);
-extern int _gdbm_debug_hook_check (char const *, int, char const *);
-extern int _gdbm_debug_hook_val (char const *);
-# define GDBM_DEBUG_HOOK(id) _gdbm_debug_hook_check(__FILE__,__LINE__,id)
-# define GDBM_DEBUG_OVERRIDE(id, stmt) \
- (GDBM_DEBUG_HOOK(id) ? _gdbm_debug_hook_val(id) : (stmt))
-# define GDBM_DEBUG_ALLOC(id, stmt) \
- (GDBM_DEBUG_HOOK(id) ? NULL : (stmt))
#else
# define GDBM_DEBUG(flags, fmt, ...)
# define GDBM_DEBUG_DATUM(flags, dat, fmt, ...)
-# define GDBM_DEBUG_HOOK(id) 0
-# define GDBM_DEBUG_OVERRIDE(id, stmt) (stmt)
-# define GDBM_DEBUG_ALLOC(id, stmt) (stmt)
# define GDBM_SET_ERRNO2(dbf, ec, fatal, m) gdbm_set_errno (dbf, ec, fatal)
#endif
# define GDBM_SET_ERRNO(dbf, ec, fatal) GDBM_SET_ERRNO2 (dbf, ec, fatal, 0)

Return to:

Send suggestions and report system problems to the System administrator.