This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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