-/*
- * So that we can use GNUC attributes (such as to get -Wall warnings
- * for printf-like functions). Only do this in gcc 2.7 or later ...
- * it may work on earlier stuff, but why chance it.
- */
-#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7 || defined(S_SPLINT_S) || defined(LINT) || defined(__lint)
-#undef __attribute__
-#define __attribute__(__x)
-#endif
-
-/*
- * assertions, but call error() instead of abort
- */
-#ifndef ASSERTIONS
-
-#define assert(exp) ((void)0)
-
-#else /* ASSERTIONS */
-
-#define assert(exp) do { \
- if (!(exp)) { \
- onerror(abort); \
- error("assert: %s false, file %s, line %d", \
- stringize(exp), __FILE__, __LINE__); \
- /*NOTREACHED*/ \
- } \
-} while (0)
-
-#endif /* ASSERTIONS */
-
-/*
- * print debug output, else compile to nothing.
- */
-
-#ifdef DEBUG_CODE /* { */
-# define dbopen(a) debug_open(a)
-# define dbreopen(a,b) debug_reopen(a,b)
-# define dbrename(a,b) debug_rename(a,b)
-# define dbclose() debug_close()
-# define dbprintf(p) (debug_printf p)
-# define dbfd() debug_fd()
-# define dbfp() debug_fp()
-# define dbfn() debug_fn()
-
-extern void debug_open(char *subdir);
-extern void debug_reopen(char *file, char *notation);
-extern void debug_rename(char *config, char *subdir);
-extern void debug_close(void);
-extern void debug_printf(const char *format, ...)
- __attribute__ ((format (printf, 1, 2)));
-extern int debug_fd(void);
-extern FILE * debug_fp(void);
-extern char * debug_fn(void);
-extern void set_debug_prefix_pid(pid_t);
-extern char *debug_prefix(char *);
-extern char *debug_prefix_time(char *);
-#else /* }{ */
-# define dbopen(a)
-# define dbreopen(a,b)
-# define dbclose()
-# define dbprintf(p)
-# define dbfd() (-1)
-# define dbfp() NULL
-# define dbfn() NULL
-# define set_debug_prefix_pid(x)
-# define debug_prefix(x) get_pname()
-# define debug_prefix_time(x) get_pname()
-#endif /* } */
-