[PATCH] converted irix-core.c to ISO C

Alan Modra amodra@bigpond.net.au
Tue Mar 29 14:08:00 GMT 2005


On Mon, Mar 28, 2005 at 10:41:54PM -0800, Joel Brobecker wrote:
> Is there a difference between forward declarations and prototypes?
> All the litterature I've read (which is not authoritative) say they
> are the same thing. In my case, I wonder if I should put the parameter
> names in the forward declaration.

ISO C function definitions serve as prototypes, so the only need for
separate prototypes is where a function is referenced before its
definition.  That's what I meant by "only need forward declarations
now".

> +static int do_sections64 (bfd *, struct coreout *);

This one can go too.  OK with that change.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list