-/*
- * Macros to allow code to adapt to both ANSI and class C environments.
- *
- * P(): prototype argument macro - removes arguments from prototypes in
- * class C environments
- * stringize(): turn a bare word or words into a quoted string
- * stringconcat(): turn two quoted strings into one
- */
-#if STDC_HEADERS
-# define P(parms) parms
-# define stringize(x) #x
-# define stringconcat(x, y) x ## y
-#else
-# define P(parms) ()
-# define stringize(x) "x"
-# define stringconcat(x, y) x/**/y
-#endif
-
-/*
- * 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
-#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__); \
- } \
-} while (0)
-
-#endif /* ASSERTIONS */
-
-/*
- * print debug output, else compile to nothing.
- */
-
-#ifdef DEBUG_CODE /* { */
-# define dbopen() debug_open()
-# define dbreopen(a,b) debug_reopen(a,b)
-# define dbclose() debug_close()
-# define dbprintf(p) (debug? (debug_printf p, 0) : 0)
-# define dbfd() debug_fd()
-# define dbfp() debug_fp()
-# define dbfn() debug_fn()
-
-extern void debug_open P((void));
-extern void debug_reopen P((char *file, char *notation));
-extern void debug_close P((void));
-extern void debug_printf P((const char *format, ...))
- __attribute__ ((format (printf, 1, 2)));
-extern int debug_fd P((void));
-extern FILE * debug_fp P((void));
-extern char * debug_fn P((void));
-extern void set_debug_prefix_pid P((pid_t));
-extern char *debug_prefix P((char *));
-extern char *debug_prefix_time P((char *));
-#else /* }{ */
-# define dbopen()
-# 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 /* } */