summaryrefslogtreecommitdiffabout
path: root/src/gdbmdefs.h
authorSergey Poznyakoff <gray@gnu.org>2018-05-30 09:32:31 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-30 09:32:31 (GMT)
commita14a6881538229cd938282bd56c7f0d12a089be6 (patch) (side-by-side diff)
tree89cfa47078460e7505c1a80ce71488eef29dfc63 /src/gdbmdefs.h
parent07caec236e3af48973874f2c0e19bafec4d13f78 (diff)
downloadgdbm-a14a6881538229cd938282bd56c7f0d12a089be6.tar.gz
gdbm-a14a6881538229cd938282bd56c7f0d12a089be6.tar.bz2
Drop debugging hooks
The hooks were introduced as a temporary tool in de7834e9. They did their job and are not necessary any more.
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
@@ -325,23 +325,9 @@ struct gdbm_file_info
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

Return to:

Send suggestions and report system problems to the System administrator.