From 441b64335590ab91854b997bec07a9578086d895 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 28 Apr 2013 17:59:28 -0400 Subject: Remove support for pre-ANSI variadic function calls. We've required support for ANSI C (ISO C 89) or better for quite a while. Get rid of the old varags.h, doprnt() stuff and simply assume ANSI C variadic function capability and basic C runtime library support (vfprintf, vsprintf, etc.) --- makeint.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'makeint.h') diff --git a/makeint.h b/makeint.h index 8ac3861..3b0336e 100644 --- a/makeint.h +++ b/makeint.h @@ -382,16 +382,6 @@ extern struct rlimit stack_limit; #define STRING_SIZE_TUPLE(_s) (_s), CSTRLEN(_s) -/* We have to have stdarg.h or varargs.h AND v*printf or doprnt to use - variadic versions of these functions. */ - -#if HAVE_STDARG_H || HAVE_VARARGS_H -# if HAVE_VPRINTF || HAVE_DOPRNT -# define USE_VARIADIC 1 -# endif -#endif - -#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H const char *concat (unsigned int, ...); void message (int prefix, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); @@ -399,12 +389,6 @@ void error (const gmk_floc *flocp, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); void fatal (const gmk_floc *flocp, const char *fmt, ...) __attribute__ ((noreturn, __format__ (__printf__, 2, 3))); -#else -const char *concat (); -void message (); -void error (); -void fatal (); -#endif void die (int) __attribute__ ((noreturn)); void log_working_directory (int, int); -- cgit v1.2.3