In message: <address@hidden>
Blue Swirl <address@hidden> writes:
: > +An exception is the opening brace for a function; for reasons of tradition
: > +and clarity it comes on a line by itself:
: > +
: > + void a_function(void)
: > + {
: > + do_something();
: > + }
: > +
: > +Rationale: a consistent (except for functions...) bracing style reduces
: > +ambiguity and avoids needless churn when lines are added or removed.
: > +Furthermore, it is the Qemu coding style.
:
: No, this is the K&R style. Quoting linux/Documentation/CodingStyle:
:
: Heretic people all over the world have claimed that this inconsistency
: is ... well ... inconsistent, but all right-thinking people know that
: (a) K&R are _right_ and (b) K&R are right. Besides, functions are
: special anyway (you can't nest them in C).
And besides, there's lots of almost-smart tools that operate on source
code that know this is always true... Or at least historically that's
been the case, don't know of any widely used ones today, but I doubt
they were all fixed...