* utils.c, complaints.c, language.c, monitor.c, remote-array.c,
authorJim Kingdon <jkingdon@engr.sgi.com>
Fri, 19 May 1995 14:15:48 +0000 (14:15 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Fri, 19 May 1995 14:15:48 +0000 (14:15 +0000)
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

gdb/ChangeLog
gdb/complaints.c
gdb/gdbtk.c
gdb/language.c
gdb/remote-array.c
gdb/remote-mips.c
gdb/remote-os9k.c
gdb/remote-st.c

index b9e336045b8faf96f922680442130051dc7e33a5..e9f143a9f86fec0d792d0b1e49fd3bdc262350a4 100644 (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,
index b551143715584cc9fe94ed3c7e78143d59f1e5f2..72a7d33b52bbc881a7744a943d745d4cc7ee74fc 100644 (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;
index 848502503cbd0b4d394a1cf2d34f27a97fdf6515..9a8d0b3d8740e3464d8c4a37a69d3432943a5cec 100644 (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)
 }
 \f
 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;
index 3c27b7d91803f2fc7d3c777e5ca67366801fc128..f989cb2aec15b9e0eee0abf0cccdd75aa5d28aa9 100644 (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;
index dc1c4640465e6a41a1e5bbd67c920423afe1343d..b7a9f4c109b4d9161be346084fa9aaef46ab8dbe 100644 (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;
index 568694c6037a53aa3fd6c173d6d51365f992435a..170a6ba0746b8521c4f8729a3531b19e15454656 100644 (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;
index 2dc526c5d5bf7722bdd0aeaf447015fbd4dd2285..69cf3e46dc2e55787ece4b5667c1de0d7c90ab31 100644 (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;
index b74ba1318852ffc4d4b4deeaed55570db2d86d1c..50c5678bffad3e0058cffb5080f85e02b3727d7f 100644 (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;
This page took 0.032922 seconds and 4 git commands to generate.