Changes between Version 49 and Version 50 of Submitting/C
- Timestamp:
- 02/16/15 13:29:45 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Submitting/C
v49 v50 262 262 263 263 To promote a consistent coding style for whitespace (spaces, tabs, newlines), please use the `indent` tool on all new C files using the following switches: 264 {{{ 265 $ indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 266 -nbbo -nbc -nbfda -nbfde -ncdb -ncdw -nce -nfca -npcs -nprs \ 267 -npsl -nsc -nsob -saf -sai -saw -sbi0 -ss -ts8 -ut main.c 264 265 {{{ 266 -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 267 -nbbo -nbc -nbfda -nbfde -ncdb -ncdw -nce -nfca -npcs -nprs 268 -npsl -nsc -nsob -saf -sai -saw -sbi0 -ss --no-tabs 268 269 }}} 269 270 … … 271 272 272 273 For your convenience use the [source:grass/trunk/tools/grass_indent.sh tools/grass_indent.sh] script available in GRASS source code. 274 275 See [http://grasswiki.osgeo.org/wiki/Development#Explanation_of_C_indentation_rules GRASS Wiki] or `man indent` for explanation of individual switches. 273 276 == Compilation == 274 277