From bdca5ee4bcd2fce04de6c9eabdbef8d960298e02 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 4 Jan 2014 21:43:21 -0700 Subject: remove PARAMS from sim This removes the last uses of PARAMS from sim. 2014-01-06 Tom Tromey * README-HACKING: Don't use PARAMS. * arm/wrapper.c: Don't use PARAMS. * bfin/sim-main.h: Don't use PARAMS. * common/callback.c: Don't use PARAMS. * common/cgen-trace.c: Don't use PARAMS. * common/run-sim.h: Don't use PARAMS. * common/run.c: Don't use PARAMS. * common/sim-base.h: Don't use PARAMS. * common/sim-load.c: Don't use PARAMS. * common/sim-options.h: Don't use PARAMS. * common/sim-trace.c: Don't use PARAMS. * common/sim-trace.h: Don't use PARAMS. * common/sim-utils.h: Don't use PARAMS. * cr16/cr16_sim.h: Don't use PARAMS. * cr16/gencode.c: Don't use PARAMS. * cr16/interp.c: Don't use PARAMS. * cr16/simops.c: Don't use PARAMS. * d10v/d10v_sim.h: Don't use PARAMS. * d10v/gencode.c: Don't use PARAMS. * d10v/interp.c: Don't use PARAMS. * d10v/simops.c: Don't use PARAMS. * erc32/erc32.c: Don't use PARAMS. * erc32/exec.c: Don't use PARAMS. * erc32/float.c: Don't use PARAMS. * erc32/func.c: Don't use PARAMS. * erc32/sis.c: Don't use PARAMS. * erc32/sis.h: Don't use PARAMS. * mips/interp.c: Don't use PARAMS. * mips/sim-main.h: Don't use PARAMS. * sh/interp.c: Don't use PARAMS. * v850/sim-main.h: Don't use PARAMS. * v850/v850_sim.h: Don't use PARAMS. --- sim/common/sim-options.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sim/common/sim-options.h') diff --git a/sim/common/sim-options.h b/sim/common/sim-options.h index eea7e99..778f4c1 100644 --- a/sim/common/sim-options.h +++ b/sim/common/sim-options.h @@ -33,10 +33,10 @@ along with this program. If not, see . */ argument, NULL if optional and missing; arg#5 is nonzero if a command is being interpreted. */ -typedef SIM_RC (OPTION_HANDLER) PARAMS ((SIM_DESC, sim_cpu *, int, char *, int)); +typedef SIM_RC (OPTION_HANDLER) (SIM_DESC, sim_cpu *, int, char *, int); /* Declare option handlers with a macro so it's usable on k&r systems. */ -#define DECLARE_OPTION_HANDLER(fn) SIM_RC fn PARAMS ((SIM_DESC, sim_cpu *, int, char *, int)) +#define DECLARE_OPTION_HANDLER(fn) SIM_RC fn (SIM_DESC, sim_cpu *, int, char *, int) typedef struct { @@ -129,20 +129,20 @@ typedef struct option_list { /* Add a set of options to the simulator. CPU is the cpu the options apply to or NULL for all cpus. TABLE is an array of OPTIONS terminated by a NULL `opt.name' entry. */ -SIM_RC sim_add_option_table PARAMS ((SIM_DESC sd, sim_cpu *cpu, const OPTION *table)); +SIM_RC sim_add_option_table (SIM_DESC sd, sim_cpu *cpu, const OPTION *table); /* Install handler for the standard options. */ MODULE_INSTALL_FN standard_install; /* Called by sim_open to parse the arguments. */ -SIM_RC sim_parse_args PARAMS ((SIM_DESC sd, char **argv)); +SIM_RC sim_parse_args (SIM_DESC sd, char **argv); /* Print help messages for the options. IS_COMMAND is non-zero when this function is called from the command line interpreter. */ -void sim_print_help PARAMS ((SIM_DESC sd, int is_command)); +void sim_print_help (SIM_DESC sd, int is_command); /* Try to parse the command as if it is an option, Only fail when totally unsuccessful */ -SIM_RC sim_args_command PARAMS ((SIM_DESC sd, char *cmd)); +SIM_RC sim_args_command (SIM_DESC sd, char *cmd); #endif /* SIM_OPTIONS_H */ -- cgit v1.1