This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFC] Protoize breakpoint.c
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: [PATCH RFC] Protoize breakpoint.c
- From: Michael Snyder <msnyder at redhat dot com>
- Date: Thu, 03 Aug 2000 10:35:29 -0700
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat, Inc.
- References: <1000803030956.ZM28029@ocotillo.lan>
Kevin Buettner wrote:
>
> More protoization... I'll commit this one sometime after midnight GMT
> of Saturday, Aug 5.
Or, if you like, you can accept my go-ahead.
Michael
>
> * breakpoint.c (bpstat_alloc, map_catch_names,
> map_breakpoint_numbers): Protoize.
>
> Index: breakpoint.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/breakpoint.c,v
> retrieving revision 1.15
> diff -u -r1.15 breakpoint.c
> --- breakpoint.c 2000/07/30 01:48:24 1.15
> +++ breakpoint.c 2000/08/03 02:57:17
> @@ -2246,9 +2246,7 @@
> /* Allocate a new bpstat and chain it to the current one. */
>
> static bpstat
> -bpstat_alloc (b, cbs)
> - register struct breakpoint *b;
> - bpstat cbs; /* Current "bs" value */
> +bpstat_alloc (struct breakpoint *b, bpstat cbs /* Current "bs" value */ )
> {
> bpstat bs;
>
> @@ -5661,9 +5659,7 @@
> /* For each catch clause identified in ARGS, run FUNCTION
> with that clause as an argument. */
> static struct symtabs_and_lines
> -map_catch_names (args, function)
> - char *args;
> - int (*function) ();
> +map_catch_names (char *args, int (*function) ())
> {
> register char *p = args;
> register char *p1;
> @@ -7209,9 +7205,7 @@
> whose numbers are given in ARGS. */
>
> static void
> -map_breakpoint_numbers (args, function)
> - char *args;
> - void (*function) (struct breakpoint *);
> +map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *))
> {
> register char *p = args;
> char *p1;