diff options
author | Akim Demaille <akim@epita.fr> | 2001-10-04 14:55:21 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2001-10-04 14:55:21 +0000 |
commit | 342b8b6e2156e923797745af2da2596e3086ccd5 (patch) | |
tree | 60ce6f66bc53ee602536c6f66fc82a63d31405ab /src/complain.c | |
parent | 0150aabe359f48ec9ea0b0d4cef081799731e414 (diff) | |
download | bison-342b8b6e2156e923797745af2da2596e3086ccd5.tar.gz |
Merge in branch-1_29.after-merge-branch-1_29
Diffstat (limited to 'src/complain.c')
-rw-r--r-- | src/complain.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/complain.c b/src/complain.c index b25f0b29..620e726c 100644 --- a/src/complain.c +++ b/src/complain.c @@ -19,14 +19,10 @@ /* Based on error.c and error.h, written by David MacKenzie <djm@gnu.ai.mit.edu>. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - -#include <stdio.h> +#include "system.h" #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC -# if __STDC__ +# ifdef __STDC__ # include <stdarg.h> # define VA_START(args, lastarg) va_start(args, lastarg) # else @@ -119,7 +115,7 @@ int error_one_per_line; `--------------------------------*/ void -#if defined VA_START && __STDC__ +#if defined VA_START && defined __STDC__ warn (const char *message, ...) #else warn (message, va_alist) @@ -171,7 +167,7 @@ warn (message, va_alist) `-----------------------------------------------------------*/ void -#if defined VA_START && __STDC__ +#if defined VA_START && defined __STDC__ complain (const char *message, ...) #else complain (message, va_alist) @@ -221,7 +217,7 @@ complain (message, va_alist) `-------------------------------------------------*/ void -#if defined VA_START && __STDC__ +#if defined VA_START && defined __STDC__ fatal (const char *message, ...) #else fatal (message, va_alist) @@ -259,7 +255,7 @@ fatal (message, va_alist) `------------------------------------------------------------------*/ void -#if defined VA_START && __STDC__ +#if defined VA_START && defined __STDC__ error (int status, int errnum, const char *message, ...) #else |