+Fri May 19 06:15:40 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
+
+ * utils.c, complaints.c, language.c, monitor.c, remote-array.c,
+ remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
+ stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
+ must match the definition of PARAMS.
+start-sanitize-gdbtk
+ * gdbtk.c: Likewise.
+end-sanitize-gdbtk
+
Thu May 18 15:58:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
#include "defs.h"
#include "complaints.h"
#include "gdbcmd.h"
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
/* VARARGS */
void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
complain (struct complaint *complaint, ...)
#else
complain (va_alist)
#endif
{
va_list args;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start (args, complaint);
#else
struct complaint *complaint;
#include "target.h"
#include <tcl.h>
#include <tk.h>
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
}
\f
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
dsprintf_append_element (Tcl_DString *dsp, char *format, ...)
#else
dsprintf_append_element (va_alist)
va_list args;
char buf[1024];
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start (args, format);
#else
Tcl_DString *dsp;
#include "defs.h"
#include <string.h>
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
by the value of warning_pre_print and we do not return to the top level. */
void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
type_error (char *string, ...)
#else
type_error (va_alist)
#endif
{
va_list args;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start (args, string);
#else
char *string;
}
void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
range_error (char *string, ...)
#else
range_error (va_alist)
#endif
{
va_list args;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start (args, string);
#else
char *string;
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
* printf_monitor -- send data to monitor. Works just like printf.
*/
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
printf_monitor(char *pattern, ...)
#else
printf_monitor(va_alist)
char buf[PBUFSIZ];
int i;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;
* to be formatted and printed. A CR is added after each string is printed.
*/
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
debuglogs(int level, char *pattern, ...)
#else
debuglogs(va_alist)
char newbuf[PBUFSIZ];
int i;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;
#include "remote-utils.h"
#include <signal.h>
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
inconsistent state. */
static NORETURN void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
mips_error (char *string, ...)
#else
mips_error (va_alist)
{
va_list args;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start (args, string);
#else
char *string;
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
/* Send data to monitor. Works just like printf. */
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
printf_monitor(char *pattern, ...)
#else
printf_monitor(va_alist)
char buf[200];
int i;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start (args, pattern);
#else
char *pattern;
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
/* Send data to stdebug. Works just like printf. */
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
printf_stdebug(char *pattern, ...)
#else
printf_stdebug(va_alist)
va_list args;
char buf[200];
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;