* 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
This commit is contained in:
Jim Kingdon 1995-05-19 14:15:48 +00:00
parent 85c613aaa7
commit 73d3dbd4e6
8 changed files with 35 additions and 25 deletions

View file

@ -1,3 +1,13 @@
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,

View file

@ -20,7 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "defs.h"
#include "complaints.h"
#include "gdbcmd.h"
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -63,7 +63,7 @@ extern int info_verbose;
/* VARARGS */
void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
complain (struct complaint *complaint, ...)
#else
complain (va_alist)
@ -71,7 +71,7 @@ complain (va_alist)
#endif
{
va_list args;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, complaint);
#else
struct complaint *complaint;

View file

@ -29,7 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "target.h"
#include <tcl.h>
#include <tk.h>
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -140,7 +140,7 @@ gdbtk_query (query, args)
}
static void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
dsprintf_append_element (Tcl_DString *dsp, char *format, ...)
#else
dsprintf_append_element (va_alist)
@ -150,7 +150,7 @@ dsprintf_append_element (va_alist)
va_list args;
char buf[1024];
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, format);
#else
Tcl_DString *dsp;

View file

@ -29,7 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "defs.h"
#include <string.h>
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -982,7 +982,7 @@ op_error (fmt,op,fatal)
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)
@ -990,7 +990,7 @@ type_error (va_alist)
#endif
{
va_list args;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, string);
#else
char *string;
@ -1011,7 +1011,7 @@ type_error (va_alist)
}
void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
range_error (char *string, ...)
#else
range_error (va_alist)
@ -1019,7 +1019,7 @@ range_error (va_alist)
#endif
{
va_list args;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, string);
#else
char *string;

View file

@ -28,7 +28,7 @@
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -173,7 +173,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
* 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)
@ -184,7 +184,7 @@ printf_monitor(va_alist)
char buf[PBUFSIZ];
int i;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;
@ -224,7 +224,7 @@ write_monitor(data, len)
* 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)
@ -237,7 +237,7 @@ debuglogs(va_alist)
char newbuf[PBUFSIZ];
int i;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;

View file

@ -31,7 +31,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "remote-utils.h"
#include <signal.h>
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -275,7 +275,7 @@ static serial_t mips_desc;
inconsistent state. */
static NORETURN void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
mips_error (char *string, ...)
#else
mips_error (va_alist)
@ -284,7 +284,7 @@ mips_error (va_alist)
{
va_list args;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, string);
#else
char *string;

View file

@ -37,7 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -90,7 +90,7 @@ static char readbuf[16];
/* Send data to monitor. Works just like printf. */
static void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
printf_monitor(char *pattern, ...)
#else
printf_monitor(va_alist)
@ -101,7 +101,7 @@ printf_monitor(va_alist)
char buf[200];
int i;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, pattern);
#else
char *pattern;

View file

@ -38,7 +38,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@ -70,7 +70,7 @@ static serial_t st2000_desc;
/* Send data to stdebug. Works just like printf. */
static void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
printf_stdebug(char *pattern, ...)
#else
printf_stdebug(va_alist)
@ -80,7 +80,7 @@ printf_stdebug(va_alist)
va_list args;
char buf[200];
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;