Changes between Version 48 and Version 49 of Submitting/C


Ignore:
Timestamp:
07/21/14 06:46:19 (10 years ago)
Author:
wenzeslaus
Comment:

explain indetation in a better way

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/C

    v48 v49  
    261261== Indentation ==
    262262
    263 To promote a consistent coding style, please use the "indent" program on all new C modules using the following switches:
     263To promote a consistent coding style for whitespace (spaces, tabs, newlines), please use the `indent` tool on all new C files using the following switches:
    264264{{{
    265265     $ indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \
     
    267267      -npsl -nsc -nsob -saf -sai -saw -sbi0 -ss -ts8 -ut main.c
    268268}}}
    269     Existing code should not be re-indented except in extreme cases, as this will make "diff" comparisons with older versions impossible. If indent is needed, do not check in any changes other than the indentation in the same commit! Do add the indent switches and any indent warning messages to the SVN log. Any change or fix mixed in with an indent is very hard to track making it hard for others to follow the change or fix any new bugs. For your convenience use the source:grass/trunk/tools/grass_indent.sh script.
    270 
     269
     270Existing code should not be re-indented as this will make "diff" comparisons with older versions impossible. In extreme cases, when run of `indent` tool is necessary, do not commit (check in) any changes other than the indentation in the same commit. Additionally, add the `indent` tool switches and any indent warning messages to the SVN commit message (SVN log). Any change or fix mixed in with an indentation is very hard to track making it hard for others to follow the change, fix any new bugs or track the origin of particular lines (`svn diff --ignore-space-change` is helpful in this case, but does not solve the problem).
     271
     272For your convenience use the [source:grass/trunk/tools/grass_indent.sh tools/grass_indent.sh] script available in GRASS source code.
    271273== Compilation ==
    272274