* [PATCH RFC] PARAMS elimination (insight files, stage 2)
@ 2000-07-02 13:34 Kevin Buettner
2000-07-10 20:18 ` Kevin Buettner
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Buettner @ 2000-07-02 13:34 UTC (permalink / raw)
To: insight
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 {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH RFC] PARAMS elimination (insight files, stage 2)
2000-07-02 13:34 [PATCH RFC] PARAMS elimination (insight files, stage 2) Kevin Buettner
@ 2000-07-10 20:18 ` Kevin Buettner
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2000-07-10 20:18 UTC (permalink / raw)
To: insight
On Jul 2, 1:34pm, Kevin Buettner wrote:
> * gdbtk-cmds.c, gdbtk-hooks.c, gdbtk-variable.c: Eliminate use
> of PARAMS in function pointer declarations.
Committed.
This concludes my PARAMS elimination activity.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-10 20:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-02 13:34 [PATCH RFC] PARAMS elimination (insight files, stage 2) Kevin Buettner
2000-07-10 20:18 ` Kevin Buettner
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).