This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH RFC] PARAMS elimination: command.h, monitor.h
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] PARAMS elimination: command.h, monitor.h
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Wed, 7 Jun 2000 23:04:12 -0700
I resume my purge of PARAMS from the gdb sources. I'll wait two days
for comments regarding the changes below and then commit if I see no
objections. (Note: These changes were made by hand. After this patch
is committed, there are 26 occurrences of PARAMS left to be eliminated
from the *.[hcy] files.)
* command.h, monitor.h: Eliminate use of PARAMS from these
files.
Index: command.h
===================================================================
RCS file: /cvs/src/src/gdb/command.h,v
retrieving revision 1.10
diff -u -r1.10 command.h
--- command.h 2000/06/08 00:52:56 1.10
+++ command.h 2000/06/08 05:45:35
@@ -115,7 +115,7 @@
void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c);
}
function;
-#define NO_FUNCTION ((void (*) PARAMS((char *args, int from_tty))) 0)
+#define NO_FUNCTION ((void (*) (char *args, int from_tty)) 0)
/* Documentation of this command (or help topic).
First line is brief documentation; remaining lines form, with it,
Index: monitor.h
===================================================================
RCS file: /cvs/src/src/gdb/monitor.h,v
retrieving revision 1.3
diff -u -r1.3 monitor.h
--- monitor.h 2000/06/04 00:41:09 1.3
+++ monitor.h 2000/06/08 05:45:36
@@ -96,10 +96,10 @@
char *dump_registers; /* Command to dump all regs at once */
char *register_pattern; /* Pattern that picks out register from reg dump */
void (*supply_register) (char *name, int namelen, char *val, int vallen);
- void (*load_routine) PARAMS ((serial_t desc, char *file,
- int hashmark)); /* Download routine */
- int (*dumpregs) PARAMS ((void)); /* routine to dump all registers */
- int (*continue_hook) PARAMS ((void)); /* Emit the continue command */
+ void (*load_routine) (serial_t desc, char *file,
+ int hashmark); /* Download routine */
+ int (*dumpregs) (void); /* routine to dump all registers */
+ int (*continue_hook) (void); /* Emit the continue command */
int (*wait_filter) (char *buf, /* Maybe contains registers */
int bufmax,
int *response_length,