[GRASS5] Code formatting style
Markus Neteler
neteler at itc.it
Sat Oct 12 16:09:14 EDT 2002
On Fri, Oct 11, 2002 at 09:08:35PM +0100, Glynn Clements wrote:
> Bernhard Reiter wrote:
>
> > I agree that a common code style is important.
> >
> > My point was that automatic reformatting has to be followed
> > by human inspection.
>
> Why? indent understands enough of C not to change the semantics of the
> code. Outside of string literals and preprocessor directives, all
> whitespace is equal.
... I also think that the Apache programmers know what they do
(i.e. using indent, that's were I got that indent line from):
http://httpd.apache.org/dev/styleguide.html
We should learn from that project.
Markus
More information about the grass-dev
mailing list