From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: insight@sourceware.cygnus.com Subject: [PATCH RFC] PARAMS elimination (insight files, stage 2) Date: Sun, 02 Jul 2000 13:34:00 -0000 Message-id: <1000702203418.ZM21009@ocotillo.lan> X-SW-Source: 2000-q3/msg00003.html The changes below were made by running ``nuke-params-indent-2'' which removes the use of PARAMS from function pointer declarations. This script may be found at http://sourceware.cygnus.com/ml/gdb-patches/2000-05/msg00494.html I will wait until July 8 for comments and objections after which I'll commit these changes. * gdbtk-cmds.c, gdbtk-hooks.c, gdbtk-variable.c: Eliminate use of PARAMS in function pointer declarations. Index: generic/gdbtk-cmds.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v retrieving revision 1.10 diff -u -p -r1.10 gdbtk-cmds.c --- gdbtk-cmds.c 2000/07/02 20:07:07 1.10 +++ gdbtk-cmds.c 2000/07/02 20:21:53 @@ -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; Index: generic/gdbtk-hooks.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v retrieving revision 1.5 diff -u -p -r1.5 gdbtk-hooks.c --- gdbtk-hooks.c 2000/07/02 20:07:07 1.5 +++ gdbtk-hooks.c 2000/07/02 20:21:54 @@ -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 *); Index: generic/gdbtk-variable.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-variable.c,v retrieving revision 1.3 diff -u -p -r1.3 gdbtk-variable.c --- gdbtk-variable.c 2000/07/02 20:07:07 1.3 +++ gdbtk-variable.c 2000/07/02 20:21:57 @@ -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 {