This is the mail archive of the gdb-patches@sourceware.cygnus.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: PARAMS and ISO-C - rules for engagement?


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

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