This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH RFC] PARAMS elimination: v850ice.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] PARAMS elimination: v850ice.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Tue, 13 Jun 2000 18:17:21 -0700
Still more PARAMS elimination... As usual, I'll wait two days for
comments before committing the changes below.
After these changes are committed, there will remain only 14
occurrences left to be eliminated from the *.[hcy] files. (As noted
in the past, there are some files that I'm not touching, namely those
files in the testsuite and gnu-regex.c.)
v850ice.c: Eliminate use of PARAMS from this file.
Index: v850ice.c
===================================================================
RCS file: /cvs/src/src/gdb/v850ice.c,v
retrieving revision 1.3
diff -u -p -r1.3 v850ice.c
--- v850ice.c 2000/06/04 00:41:09 1.3
+++ v850ice.c 2000/06/14 01:05:14
@@ -121,17 +121,17 @@ static void togdb_force_update (void);
static void view_source (CORE_ADDR);
-static void do_gdb (char *, char *, void (*func) PARAMS ((char *, int)), int);
+static void do_gdb (char *, char *, void (*func) (char *, int), int);
/* Globals */
static HWND hidden_hwnd; /* HWND for messages */
-long (__stdcall * ExeAppReq) PARAMS ((char *, long, char *, struct MessageIO *));
+long (__stdcall * ExeAppReq) (char *, long, char *, struct MessageIO *);
-long (__stdcall * RegisterClient) PARAMS ((HWND));
+long (__stdcall * RegisterClient) (HWND);
-long (__stdcall * UnregisterClient) PARAMS ((void));
+long (__stdcall * UnregisterClient) (void);
extern Tcl_Interp *gdbtk_interp;
@@ -346,11 +346,11 @@ v850ice_open (name, from_tty)
if (handle == NULL)
error ("Cannot load necmsg.dll");
- ExeAppReq = (long (*)PARAMS ((char *, long, char *, struct MessageIO *)))
+ ExeAppReq = (long (*) (char *, long, char *, struct MessageIO *))
GetProcAddress (handle, "ExeAppReq");
- RegisterClient = (long (*)PARAMS ((HWND)))
+ RegisterClient = (long (*) (HWND))
GetProcAddress (handle, "RegisterClient");
- UnregisterClient = (long (*)PARAMS ((void)))
+ UnregisterClient = (long (*) (void))
GetProcAddress (handle, "UnregisterClient");
if (ExeAppReq == NULL || RegisterClient == NULL || UnregisterClient == NULL)