This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH RFC] Protoize wrapper.c


Kevin Buettner wrote:
> 
> Ahem...
> 
> The following bit of protoization *should* have been done by the
> person who recently added the functions in question.
> 

My fault.  Our patches crossed in the post/commit process.
When I wrote it wrapper.c hadn't been "protoized" yet.

Thanks for the fix.

Fernando


> (I reran my protoization checker script to see what else remained
> to be done and it turned up this file, in addition to several others
> that I had been waiting on.)
> 
>         * wrapper.c (gdb_value_assign, wrap_value_assign): Protoize.
> 
> Index: wrapper.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/wrapper.c,v
> retrieving revision 1.9
> diff -u -r1.9 wrapper.c
> --- wrapper.c   2000/11/06 23:12:29     1.9
> +++ wrapper.c   2000/11/15 20:13:13
> @@ -169,10 +169,7 @@
>  }
> 
>  int
> -gdb_value_assign (val1, val2, result)
> -     value_ptr val1;
> -     value_ptr val2;
> -     value_ptr *result;
> +gdb_value_assign (value_ptr val1, value_ptr val2, value_ptr *result)
>  {
>    struct gdb_wrapper_arguments args;
> 
> @@ -191,8 +188,7 @@
>  }
> 
>  static int
> -wrap_value_assign (a)
> -     char *a;
> +wrap_value_assign (char *a)
>  {
>    struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) a;
>    value_ptr val1, val2;

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]