From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@redhat.com>
Subject: [PATCH 3/3] remove VA_* macros from sim
Date: Tue, 07 Jan 2014 18:26:00 -0000 [thread overview]
Message-ID: <1389119202-13386-4-git-send-email-tromey@redhat.com> (raw)
In-Reply-To: <1389119202-13386-1-git-send-email-tromey@redhat.com>
Remove the obsolete VA_* macros from sim.
2014-01-06 Tom Tromey <tromey@redhat.com>
* common/cgen-trace.c: Don't use old VA_* macros.
* common/sim-load.c (xprintf): Likewise.
* common/sim-trace.c (trace_printf, debug_printf): Likewise.
---
sim/ChangeLog | 6 ++++++
sim/common/cgen-trace.c | 2 +-
sim/common/sim-load.c | 4 ++--
sim/common/sim-trace.c | 4 ++--
4 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 6e2f856..ed9aee1 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -308,7 +308,7 @@ sim_disasm_sprintf (SFILE *f, const char *format, ...)
int n;
va_list args;
- VA_START (args, format);
+ va_start (args, format);
#ifndef __STDC__
f = va_arg (args, SFILE *);
format = va_arg (args, char *);
diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c
index 2e2b804..48c0a93 100644
--- a/sim/common/sim-load.c
+++ b/sim/common/sim-load.c
@@ -173,7 +173,7 @@ xprintf (host_callback *callback, const char *fmt, ...)
{
va_list ap;
- VA_START (ap, fmt);
+ va_start (ap, fmt);
(*callback->vprintf_filtered) (callback, fmt, ap);
@@ -185,7 +185,7 @@ eprintf (host_callback *callback, const char *fmt, ...)
{
va_list ap;
- VA_START (ap, fmt);
+ va_start (ap, fmt);
(*callback->evprintf_filtered) (callback, fmt, ap);
diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c
index bb56db7..b8cfff3 100644
--- a/sim/common/sim-trace.c
+++ b/sim/common/sim-trace.c
@@ -1309,7 +1309,7 @@ trace_printf (SIM_DESC sd, sim_cpu *cpu, const char *fmt, ...)
#endif
va_list ap;
- VA_START (ap, fmt);
+ va_start (ap, fmt);
#if !defined __STDC__ && !defined ALMOST_STDC
sd = va_arg (ap, SIM_DESC);
cpu = va_arg (ap, sim_cpu *);
@@ -1330,7 +1330,7 @@ debug_printf (sim_cpu *cpu, const char *fmt, ...)
#endif
va_list ap;
- VA_START (ap, fmt);
+ va_start (ap, fmt);
#if !defined __STDC__ && !defined ALMOST_STDC
cpu = va_arg (ap, sim_cpu *);
fmt = va_arg (ap, const char *);
--
1.8.1.4
next prev parent reply other threads:[~2014-01-07 18:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-07 18:26 [PATCH 0/3] remove obsolete ansidecl.h " Tom Tromey
2014-01-07 18:26 ` [PATCH 1/3] remove PARAMS from include/cgen Tom Tromey
2014-01-07 18:32 ` Mike Frysinger
2014-01-07 18:26 ` Tom Tromey [this message]
2014-01-07 18:34 ` [PATCH 3/3] remove VA_* macros from sim Mike Frysinger
2014-01-07 18:27 ` [PATCH 2/3] remove PARAMS " Tom Tromey
2014-01-07 18:34 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1389119202-13386-4-git-send-email-tromey@redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).