From 85c613aaa7092f8dfc8ce0c475e0ef210685bc16 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Thu, 18 May 1995 23:45:31 +0000 Subject: * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered, printf_filtered, printf_unfiltered, printfi_filtered, query, warning, error, fatal, fatal_dump_core): Use stdarg.h macros when compiling with an ANSI compiler. * complain.c (complain): Likewise. * language.c (type_error, range_error): Likewise. * monitor.c (monitor_printf, monitor_printf_noecho): Likewise. * remote-array.c (printf_monitor, debuglogs): Likewise. * remote-mips.c (mips_error): Likewise. * remote-os9k.c (printf_monitor): Likewise. * remote-st.c (printf_stdebug): Likewise. * gdbtk.c (gdbtk_query): Likewise. * defs.h, complain.h, language.h, monitor.h: Add prototypes to match above changes. * printcmd.c: Remove uneeded #include . * remote-e7000.c: Likewise. * f-typeprint.c (f_type_print_base): Fix typo found by above changes. --- gdb/complaints.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gdb/complaints.c') diff --git a/gdb/complaints.c b/gdb/complaints.c index e441db4..b551143 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -20,7 +20,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "defs.h" #include "complaints.h" #include "gdbcmd.h" +#ifdef __STDC__ +#include +#else #include +#endif /* Structure to manage complaints about symbol file contents. */ @@ -59,14 +63,23 @@ extern int info_verbose; /* VARARGS */ void +#ifdef __STDC__ +complain (struct complaint *complaint, ...) +#else complain (va_alist) va_dcl +#endif { va_list args; +#ifdef __STDC__ + va_start (args, complaint); +#else struct complaint *complaint; va_start (args); complaint = va_arg (args, struct complaint *); +#endif + complaint -> counter++; if (complaint -> next == NULL) { -- cgit v1.1