summaryrefslogtreecommitdiffabout
path: root/src/gdbmdefs.h
Unidiff
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
325 gdbm_set_errno(dbf, ec, fatal); \ 325 gdbm_set_errno(dbf, ec, fatal); \
326 } \ 326 } \
327 while (0) 327 while (0)
328
329typedef int (*gdbm_debug_hook) (char const *, int, char const *, void *);
330extern void _gdbm_debug_hook_install (char const *, gdbm_debug_hook, void *);
331extern void _gdbm_debug_hook_remove (char const *);
332extern int _gdbm_debug_hook_check (char const *, int, char const *);
333extern int _gdbm_debug_hook_val (char const *);
334# define GDBM_DEBUG_HOOK(id) _gdbm_debug_hook_check(__FILE__,__LINE__,id)
335 # define GDBM_DEBUG_OVERRIDE(id, stmt) \
336 (GDBM_DEBUG_HOOK(id) ? _gdbm_debug_hook_val(id) : (stmt))
337 # define GDBM_DEBUG_ALLOC(id, stmt) \
338 (GDBM_DEBUG_HOOK(id) ? NULL : (stmt))
339#else 328#else
340# define GDBM_DEBUG(flags, fmt, ...) 329# define GDBM_DEBUG(flags, fmt, ...)
341# define GDBM_DEBUG_DATUM(flags, dat, fmt, ...) 330# define GDBM_DEBUG_DATUM(flags, dat, fmt, ...)
342# define GDBM_DEBUG_HOOK(id) 0
343# define GDBM_DEBUG_OVERRIDE(id, stmt) (stmt)
344# define GDBM_DEBUG_ALLOC(id, stmt) (stmt)
345# define GDBM_SET_ERRNO2(dbf, ec, fatal, m) gdbm_set_errno (dbf, ec, fatal) 331# define GDBM_SET_ERRNO2(dbf, ec, fatal, m) gdbm_set_errno (dbf, ec, fatal)
346#endif 332#endif
347 333

Return to:

Send suggestions and report system problems to the System administrator.