remove VA_* macros from sim
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.
This commit is contained in:
parent
bdca5ee4bc
commit
6104cb7ae7
4 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
||||
2014-01-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* README-HACKING: Don't use PARAMS.
|
||||
|
|
|
@ -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 *);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Reference in a new issue