aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-07-08 08:05:35 +0000
committerBen Elliston <bje@au.ibm.com>2005-07-08 08:05:35 +0000
commit3b02a06bd6d4345b8aea0843f2bffe75ee05d056 (patch)
tree84699d7f879f7f064df5a5ab87ea03cf65e8a6f0 /sim/common/callback.c
parent4eeb4f8dbf7cb33b7a8b15b7d67661ba80a2a157 (diff)
downloadgdb-3b02a06bd6d4345b8aea0843f2bffe75ee05d056.zip
gdb-3b02a06bd6d4345b8aea0843f2bffe75ee05d056.tar.gz
gdb-3b02a06bd6d4345b8aea0843f2bffe75ee05d056.tar.bz2
* callback.c: Remove ANSI_PROTOTYPES conditional code.
* sim-load.c: Likewise. * syscall.c: Likewise.
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index bb7bc47..570e294 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -26,11 +26,7 @@
#include "cconfig.h"
#endif
#include "ansidecl.h"
-#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
@@ -755,23 +751,10 @@ os_init (p)
/* VARARGS */
static void
-#ifdef ANSI_PROTOTYPES
os_printf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...)
-#else
-os_printf_filtered (p, va_alist)
- host_callback *p;
- va_dcl
-#endif
{
va_list args;
-#ifdef ANSI_PROTOTYPES
va_start (args, format);
-#else
- char *format;
-
- va_start (args);
- format = va_arg (args, char *);
-#endif
vfprintf (stdout, format, args);
va_end (args);
@@ -779,51 +762,24 @@ os_printf_filtered (p, va_alist)
/* VARARGS */
static void
-#ifdef ANSI_PROTOTYPES
os_vprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_list args)
-#else
-os_vprintf_filtered (p, format, args)
- host_callback *p;
- const char *format;
- va_list args;
-#endif
{
vprintf (format, args);
}
/* VARARGS */
static void
-#ifdef ANSI_PROTOTYPES
os_evprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_list args)
-#else
-os_evprintf_filtered (p, format, args)
- host_callback *p;
- const char *format;
- va_list args;
-#endif
{
vfprintf (stderr, format, args);
}
/* VARARGS */
static void
-#ifdef ANSI_PROTOTYPES
os_error (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...)
-#else
-os_error (p, va_alist)
- host_callback *p;
- va_dcl
-#endif
{
va_list args;
-#ifdef ANSI_PROTOTYPES
va_start (args, format);
-#else
- char *format;
-
- va_start (args);
- format = va_arg (args, char *);
-#endif
vfprintf (stderr, format, args);
fprintf (stderr, "\n");