* 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 <varargs.h>.
        * remote-e7000.c: Likewise.

        * f-typeprint.c (f_type_print_base): Fix typo found by above
          changes.
This commit is contained in:
J.T. Conklin
1995-05-18 23:45:31 +00:00
parent ff15324f63
commit 85c613aaa7
16 changed files with 293 additions and 66 deletions

View File

@@ -187,7 +187,7 @@ extern void null_cleanup PARAMS ((char **));
extern int myread PARAMS ((int, char *, int));
extern int query ();
extern int query PARAMS((char *, ...));
/* Annotation stuff. */
@@ -223,21 +223,21 @@ extern void vprintf_filtered ();
extern void vfprintf_filtered ();
extern void fprintf_filtered ();
extern void fprintf_filtered PARAMS ((FILE *, char *, ...));
extern void fprintfi_filtered ();
extern void fprintfi_filtered PARAMS ((int, FILE *, char *, ...));
extern void printf_filtered ();
extern void printf_filtered PARAMS ((char *, ...));
extern void printfi_filtered ();
extern void printfi_filtered PARAMS ((int, char *, ...));
extern void vprintf_unfiltered ();
extern void vfprintf_unfiltered ();
extern void fprintf_unfiltered ();
extern void fprintf_unfiltered PARAMS ((FILE *, char *, ...));
extern void printf_unfiltered ();
extern void printf_unfiltered PARAMS ((char *, ...));
extern void print_spaces PARAMS ((int, GDB_FILE *));
@@ -549,11 +549,11 @@ extern char *quit_pre_print;
extern char *warning_pre_print;
extern NORETURN void error () ATTR_NORETURN;
extern NORETURN void error PARAMS((char *, ...)) ATTR_NORETURN;
extern void error_begin PARAMS ((void));
extern NORETURN void fatal () ATTR_NORETURN;
extern NORETURN void fatal PARAMS((char *, ...)) ATTR_NORETURN;
extern NORETURN void nomem PARAMS ((long)) ATTR_NORETURN;
@@ -579,7 +579,7 @@ catch_errors PARAMS ((int (*) (char *), void *, char *, return_mask));
extern void warning_begin PARAMS ((void));
extern void warning ();
extern void warning PARAMS ((char *, ...));
/* Global functions from other, non-gdb GNU thingies.
Libiberty thingies are no longer declared here. We include libiberty.h