19 |
/* Based on error.c and error.h, |
/* Based on error.c and error.h, |
20 |
written by David MacKenzie <djm@gnu.ai.mit.edu>. */ |
written by David MacKenzie <djm@gnu.ai.mit.edu>. */ |
21 |
|
|
22 |
#ifdef HAVE_CONFIG_H |
#include "system.h" |
|
# include <config.h> |
|
|
#endif |
|
|
|
|
|
#include <stdio.h> |
|
23 |
|
|
24 |
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC |
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC |
25 |
# if __STDC__ |
# ifdef __STDC__ |
26 |
# include <stdarg.h> |
# include <stdarg.h> |
27 |
# define VA_START(args, lastarg) va_start(args, lastarg) |
# define VA_START(args, lastarg) va_start(args, lastarg) |
28 |
# else |
# else |
115 |
`--------------------------------*/ |
`--------------------------------*/ |
116 |
|
|
117 |
void |
void |
118 |
#if defined VA_START && __STDC__ |
#if defined VA_START && defined __STDC__ |
119 |
warn (const char *message, ...) |
warn (const char *message, ...) |
120 |
#else |
#else |
121 |
warn (message, va_alist) |
warn (message, va_alist) |
167 |
`-----------------------------------------------------------*/ |
`-----------------------------------------------------------*/ |
168 |
|
|
169 |
void |
void |
170 |
#if defined VA_START && __STDC__ |
#if defined VA_START && defined __STDC__ |
171 |
complain (const char *message, ...) |
complain (const char *message, ...) |
172 |
#else |
#else |
173 |
complain (message, va_alist) |
complain (message, va_alist) |
217 |
`-------------------------------------------------*/ |
`-------------------------------------------------*/ |
218 |
|
|
219 |
void |
void |
220 |
#if defined VA_START && __STDC__ |
#if defined VA_START && defined __STDC__ |
221 |
fatal (const char *message, ...) |
fatal (const char *message, ...) |
222 |
#else |
#else |
223 |
fatal (message, va_alist) |
fatal (message, va_alist) |
255 |
`------------------------------------------------------------------*/ |
`------------------------------------------------------------------*/ |
256 |
|
|
257 |
void |
void |
258 |
#if defined VA_START && __STDC__ |
#if defined VA_START && defined __STDC__ |
259 |
error (int status, int errnum, |
error (int status, int errnum, |
260 |
const char *message, ...) |
const char *message, ...) |
261 |
#else |
#else |