Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH RFC] Protoize values.c, varobj.c
@ 2000-11-07 21:21 Kevin Buettner
  2000-11-09 17:27 ` Kevin Buettner
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Buettner @ 2000-11-07 21:21 UTC (permalink / raw)
  To: gdb-patches

More protoization...

	* values.c (value_being_returned, using_struct_return): Protoize.
	* varobj.c (child_exists, cplus_class_num_children): Protoize.

Index: values.c
===================================================================
RCS file: /cvs/src/src/gdb/values.c,v
retrieving revision 1.10
diff -u -r1.10 values.c
--- values.c	2000/10/30 15:32:51	1.10
+++ values.c	2000/11/08 05:16:31
@@ -1466,12 +1466,9 @@
    0 when it is using the value returning conventions (this often
    means returning pointer to where structure is vs. returning value). */
 
+/* ARGSUSED */
 value_ptr
-value_being_returned (valtype, retbuf, struct_return)
-     register struct type *valtype;
-     char *retbuf;
-     int struct_return;
-     /*ARGSUSED */
+value_being_returned (struct type *valtype, char *retbuf, int struct_return)
 {
   register value_ptr val;
   CORE_ADDR addr;
@@ -1530,13 +1527,10 @@
    is the type returned by the function.  GCC_P is nonzero if compiled
    with GCC.  */
 
+/* ARGSUSED */
 int
-using_struct_return (function, funcaddr, value_type, gcc_p)
-     value_ptr function;
-     CORE_ADDR funcaddr;
-     struct type *value_type;
-     int gcc_p;
-     /*ARGSUSED */
+using_struct_return (value_ptr function, CORE_ADDR funcaddr,
+		     struct type *value_type, int gcc_p)
 {
   register enum type_code code = TYPE_CODE (value_type);
 
Index: varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/varobj.c,v
retrieving revision 1.11
diff -u -r1.11 varobj.c
--- varobj.c	2000/11/06 23:12:29	1.11
+++ varobj.c	2000/11/08 05:16:35
@@ -1216,9 +1216,7 @@
 /* Does a child with the name NAME exist in VAR? If so, return its data.
    If not, return NULL. */
 static struct varobj *
-child_exists (var, name)
-     struct varobj *var;	/* Parent */
-     char *name;		/* name of child */
+child_exists (struct varobj *var, char *name)
 {
   struct varobj_child *vc;
 
@@ -2156,9 +2154,7 @@
    That means we need to descend into all baseclasses and find out
    how many are there, too. */
 static void
-cplus_class_num_children (type, children)
-     struct type *type;
-     int children[3];
+cplus_class_num_children (struct type *type, int children[3])
 {
   int i;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH RFC] Protoize values.c, varobj.c
  2000-11-07 21:21 [PATCH RFC] Protoize values.c, varobj.c Kevin Buettner
@ 2000-11-09 17:27 ` Kevin Buettner
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2000-11-09 17:27 UTC (permalink / raw)
  To: gdb-patches

On Nov 7, 10:20pm, Kevin Buettner wrote:

> 	* values.c (value_being_returned, using_struct_return): Protoize.
> 	* varobj.c (child_exists, cplus_class_num_children): Protoize.

Committed.
From kevinb@cygnus.com Thu Nov 09 17:27:00 2000
From: Kevin Buettner <kevinb@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH RFC] Protoize win32-nat.c, xcoffread.c
Date: Thu, 09 Nov 2000 17:27:00 -0000
Message-id: <1001110012636.ZM28396@ocotillo.lan>
X-SW-Source: 2000-11/msg00122.html
Content-length: 1546

More protoization...

	* win32-nat.c (safe_symbol_file_add): Remove extraneous blank
	line after function declarator.
	* xcoffread.c (arrange_linetable, xcoff_initial_scan): Protoize.

Index: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.15
diff -u -r1.15 win32-nat.c
--- win32-nat.c	2000/08/27 04:21:35	1.15
+++ win32-nat.c	2000/11/10 01:21:46
@@ -463,7 +463,6 @@
 safe_symbol_file_add (char *name, int from_tty,
 		      struct section_addr_info *addrs,
 		      int mainline, int flags)
-
 {
   struct safe_symbol_file_add_args p;
   struct cleanup *cleanup;
Index: xcoffread.c
===================================================================
RCS file: /cvs/src/src/gdb/xcoffread.c,v
retrieving revision 1.9
diff -u -r1.9 xcoffread.c
--- xcoffread.c	2000/08/27 22:30:29	1.9
+++ xcoffread.c	2000/11/10 01:21:49
@@ -408,8 +408,7 @@
    sort_linevec = 1 to end_symtab.  */
 
 static struct linetable *
-arrange_linetable (oldLineTb)
-     struct linetable *oldLineTb;	/* old linetable */
+arrange_linetable (struct linetable *oldLineTb)
 {
   int ii, jj, newline,		/* new line count */
     function_count;		/* # of functions */
@@ -2600,9 +2599,7 @@
    table (as opposed to a shared lib or dynamically loaded file).  */
 
 static void
-xcoff_initial_scan (objfile, mainline)
-     struct objfile *objfile;
-     int mainline;		/* FIXME comments above */
+xcoff_initial_scan (struct objfile *objfile, int mainline)
 {
   bfd *abfd;
   int val;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-09 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-07 21:21 [PATCH RFC] Protoize values.c, varobj.c Kevin Buettner
2000-11-09 17:27 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox