PARAMS and ISO-C - rules for engagement?

Andrew Cagney ac131313@cygnus.com
Wed May 17 17:24:00 GMT 2000


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


More information about the Gdb-patches mailing list