[patch] *-dis.c: Fix formatting.
Alan Modra
amodra@bigpond.net.au
Fri Aug 17 22:28:00 GMT 2001
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."
More information about the Binutils
mailing list