From daa3ca32274622d34739a72f3c4c17a63d5868b9 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Tue, 11 Jul 2000 03:13:26 +0000 Subject: [PATCH] PARAMS elimination. --- gdb/gdbtk/generic/ChangeLog | 5 +++++ gdb/gdbtk/generic/gdbtk-cmds.c | 2 +- gdb/gdbtk/generic/gdbtk-hooks.c | 8 ++++---- gdb/gdbtk/generic/gdbtk-variable.c | 14 +++++++------- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/gdb/gdbtk/generic/ChangeLog b/gdb/gdbtk/generic/ChangeLog index 45c6927e54..30897b5a57 100644 --- a/gdb/gdbtk/generic/ChangeLog +++ b/gdb/gdbtk/generic/ChangeLog @@ -1,3 +1,8 @@ +2000-07-10 Kevin Buettner + + * gdbtk-cmds.c, gdbtk-hooks.c, gdbtk-variable.c: Eliminate use + of PARAMS in function pointer declarations. + 2000-07-02 Kevin Buettner * gdbtk-cmds.c, gdbtk-hooks.c, gdbtk-variable.c, diff --git a/gdb/gdbtk/generic/gdbtk-cmds.c b/gdb/gdbtk/generic/gdbtk-cmds.c index 22354bce7b..f16e21b8e3 100644 --- a/gdb/gdbtk/generic/gdbtk-cmds.c +++ b/gdb/gdbtk/generic/gdbtk-cmds.c @@ -1747,7 +1747,7 @@ static int map_arg_registers (objc, objv, func, argp) int objc; Tcl_Obj *CONST objv[]; - void (*func) PARAMS ((int regnum, void *argp)); + void (*func) (int regnum, void *argp); void *argp; { int regnum, numregs; diff --git a/gdb/gdbtk/generic/gdbtk-hooks.c b/gdb/gdbtk/generic/gdbtk-hooks.c index fe680d9dd2..e780d817ad 100644 --- a/gdb/gdbtk/generic/gdbtk-hooks.c +++ b/gdb/gdbtk/generic/gdbtk-hooks.c @@ -65,10 +65,10 @@ volatile int in_fputs = 0; that it should forcibly detach from the target. */ int gdbtk_force_detach = 0; -extern void (*pre_add_symbol_hook) PARAMS ((char *)); -extern void (*post_add_symbol_hook) PARAMS ((void)); -extern void (*selected_frame_level_changed_hook) PARAMS ((int)); -extern int (*ui_loop_hook) PARAMS ((int)); +extern void (*pre_add_symbol_hook) (char *); +extern void (*post_add_symbol_hook) (void); +extern void (*selected_frame_level_changed_hook) (int); +extern int (*ui_loop_hook) (int); static void gdbtk_create_tracepoint (struct tracepoint *); static void gdbtk_delete_tracepoint (struct tracepoint *); diff --git a/gdb/gdbtk/generic/gdbtk-variable.c b/gdb/gdbtk/generic/gdbtk-variable.c index e64224556b..c7a9f16edd 100644 --- a/gdb/gdbtk/generic/gdbtk-variable.c +++ b/gdb/gdbtk/generic/gdbtk-variable.c @@ -126,25 +126,25 @@ struct language_specific { enum vlanguage language; /* The number of children of PARENT. */ - int (*number_of_children) PARAMS ((struct _gdb_variable *parent)); + int (*number_of_children) (struct _gdb_variable * parent); /* The name of the INDEX'th child of PARENT. */ - char *(*name_of_child) PARAMS ((struct _gdb_variable *parent, int index)); + char *(*name_of_child) (struct _gdb_variable * parent, int index); /* The value_ptr of the root variable ROOT. */ - value_ptr (*value_of_root) PARAMS ((struct _gdb_variable *root)); + value_ptr (*value_of_root) (struct _gdb_variable * root); /* The value_ptr of the INDEX'th child of PARENT. */ - value_ptr (*value_of_child) PARAMS ((struct _gdb_variable *parent, int index)); + value_ptr (*value_of_child) (struct _gdb_variable * parent, int index); /* The type of the INDEX'th child of PARENT. */ - struct type *(*type_of_child) PARAMS ((struct _gdb_variable *parent, int index)); + struct type *(*type_of_child) (struct _gdb_variable * parent, int index); /* Is VAR editable? */ - int (*variable_editable) PARAMS ((struct _gdb_variable *var)); + int (*variable_editable) (struct _gdb_variable * var); /* The current value of VAR is returned in *OBJ. */ - int (*value_of_variable) PARAMS ((struct _gdb_variable *var, Tcl_Obj **obj)); + int (*value_of_variable) (struct _gdb_variable * var, Tcl_Obj ** obj); }; struct vstack { -- 2.11.0