25 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
26 |
#include <config.h> |
#include <config.h> |
27 |
#endif |
#endif |
|
|
|
|
#ifdef HAVE_STDARG_H |
|
28 |
#include <stdarg.h> |
#include <stdarg.h> |
|
#else |
|
|
#include <varargs.h> |
|
|
#endif |
|
29 |
|
|
30 |
#ifndef __attribute__ |
#ifndef __attribute__ |
31 |
/* This feature is available in gcc versions 2.5 and later. */ |
/* This feature is available in gcc versions 2.5 and later. */ |
46 |
void setverbose(); |
void setverbose(); |
47 |
void setdebug(); |
void setdebug(); |
48 |
void sethandler(void (*proc)()); |
void sethandler(void (*proc)()); |
|
#ifdef HAVE_STDARG_H |
|
49 |
void die(const char *s, ...) |
void die(const char *s, ...) |
50 |
__attribute__ ((__noreturn__, __format__ (__printf__, 1, 2))); |
__attribute__ ((__noreturn__, __format__ (__printf__, 1, 2))); |
|
#else |
|
|
void die(); |
|
|
#endif |
|
|
#ifdef HAVE_STDARG_H |
|
51 |
void die_with_code(int n, const char *s, ...) |
void die_with_code(int n, const char *s, ...) |
52 |
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 3))); |
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 3))); |
|
#else |
|
|
void die_with_code(); |
|
|
#endif |
|
|
#ifdef HAVE_STDARG_H |
|
53 |
void message(const char *s, ...) |
void message(const char *s, ...) |
54 |
__attribute__ ((__format__ (__printf__, 1, 2))); |
__attribute__ ((__format__ (__printf__, 1, 2))); |
|
#else |
|
|
void message(); |
|
|
#endif |
|
|
#ifdef HAVE_STDARG_H |
|
55 |
void warning(const char *s, ...) |
void warning(const char *s, ...) |
56 |
__attribute__ ((__format__ (__printf__, 1, 2))); |
__attribute__ ((__format__ (__printf__, 1, 2))); |
|
#else |
|
|
void warning(); |
|
|
#endif |
|
57 |
|
|
58 |
#endif /* ! _DIE_H_ */ |
#endif /* ! _DIE_H_ */ |