This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: New ARI warning Sat Mar 12 01:53:29 UTC 2011


On Monday 14 March 2011 11:26:40, Eli Zaretskii wrote:
> >   Would it be better to reformat those as
> > extern TYPE long_func_name 
> >   (with_long_parameters);
> > instead of
> > extern TYPE
> >   long_func_name (with_long_parameters);
> 
> No, that's even uglier.
> 

But it's what we do all over.  We do have the rule that
grep "^foofunc" should only match function definitions, not
declarations.  Here in gdbint.texinfo:

"A function declaration should not have its name in column zero.  A
function definition should have its name in column zero."

-- 
Pedro Alves


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