[PATCH RFC] PARAMS elimination: ser-ocd.c, symtab.c

Kevin Buettner kevinb@cygnus.com
Sun Jun 11 18:54:00 GMT 2000


More PARAMS elimination...  I'll wait two days before committing the
changes below.  After this patch is committed, there remain 21
occurrences of PARAMS still to be eliminated from the *.[hcy] files.

	* ser-ocd.c, symtab.c: Eliminate use of PARAMS from these files.

Index: ser-ocd.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-ocd.c,v
retrieving revision 1.2
diff -u -r1.2 ser-ocd.c
--- ser-ocd.c	2000/06/04 00:41:09	1.2
+++ ser-ocd.c	2000/06/12 01:40:10
@@ -49,7 +49,7 @@
       if (handle == NULL)
 	error ("Can't load Wigglers.dll");
 
-      dll_do_command = ((int (*)PARAMS ((const char *, char *)))
+      dll_do_command = ((int (*) (const char *, char *))
 			GetProcAddress (handle, "do_command"));
       if (dll_do_command == NULL)
 	error ("Can't find do_command function in Wigglers.dll");
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.7
diff -u -r1.7 symtab.c
--- symtab.c	2000/06/05 20:49:53	1.7
+++ symtab.c	2000/06/12 01:40:18
@@ -77,9 +77,9 @@
 
 static int find_line_common (struct linetable *, int, int *);
 
-static struct partial_symbol *lookup_partial_symbol PARAMS
-  ((struct partial_symtab *, const char *,
-    int, namespace_enum));
+static struct partial_symbol *lookup_partial_symbol (struct partial_symtab *,
+						     const char *, int,
+						     namespace_enum);
 
 static struct partial_symbol *fixup_psymbol_section (struct
 						     partial_symbol *,



More information about the Gdb-patches mailing list