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]

Re: [patch] *-dis.c: Fix formatting.


On Sat, Aug 18, 2001 at 12:33:51AM -0400, Andrew Cagney wrote:
> > @@ -22,9 +22,7 @@
> >  #include "dis-asm.h"
> >  #include "opintl.h"
> >  
> > -
> > -struct avr_opcodes_s
> > -{
> > +struct avr_opcodes_s {
> >    char *name;
> >    char *constraints;
> >    char *opcode;
> 
> 
> While I'm not sure what BINUTILS is doing I would note that the GNU 
> Coding Standard recomments:
> 
> 	struct foo
> 	{
> 	  char *name;
> 	  char *consts;
> 	};
> 
> as controlled by gnu-indent's -bls.

Oh?

http://www.gnu.org/prep/standards_23.html#SEC24

"It is important to put the open-brace that starts the body of a C
function in column zero, and avoid putting any other open-brace or
open-parenthesis or open-bracket in column zero. Several tools look
for open-braces in column zero to find the beginnings of C functions.
These tools will not work on code not formatted that way."


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