This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: PARAMS and ISO-C - rules for engagement?
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: PARAMS and ISO-C - rules for engagement?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 18 May 2000 10:23:16 +1000
- Organization: Cygnus Solutions
- References: <39225FC5.D6460655@cygnus.com>
Andrew Cagney wrote:
>
> Hello,
>
> So, ok maintainers are now free to rip out PARAMS. The only suggestion
> I have is to remember to format functions as:
>
> extern int foo (void);
>
> and not:
>
> extern int
> foo (void);
>
Just an FYI on this. The reason declarations are written as:
extern void foo (void)
and definitions are written as:
extern void
foo (void)
{
}
is so that the pattern '^foo' finds the function definition and not its
declaration. While the only reason it is an especially useful one :-)
enjoy,
Andrew