[GRASS5] Code Formatting

Hamish hamish_nospam at yahoo.com
Sat Apr 22 04:39:53 EDT 2006


> > This has been added to the SUBMITTING file not long ago:
> > 
> > 14. To promote a consistent coding style, please use the "indent" program
> >     on all new C modules using the following switches:
> >     
> >      $ indent -nbad -bap -bbb -nbbo -nbc -br -bli1 -bls -cbi0 -ncdb -nce \
> >         -ci4 -cli0 -ncs -d0 -di0 -fc1 -nfca -hnl -i4 -ip4 -l80 -lc80 -lp \
> > 	-npcs -pi4 -nprs -npsl -sbi0 -sc -nsob -ss -ts8  main.c
> 
> Any objections to changing:
> 
> 	-bli1	->	-bli0
> 	-br	->	-bl

translation:
  '{' comes on next line after if,for etc instead of "if {"
  Structs, functions already do this (-bls)


> ?
>
> Does anyone else have specific preferences?

We all will have our own, slighltly differing.
I am not too worried about it.


Hamish




More information about the grass-dev mailing list