Update coding style
authorJason Self <j@jxself.org>
Sun, 14 Jan 2018 20:39:18 +0000 (12:39 -0800)
committerJason Self <j@jxself.org>
Sun, 14 Jan 2018 20:39:18 +0000 (12:39 -0800)
Remove -nut because is not specified as being part of the source code
style. Add -nprsa, -saf, -sai and -saw because they are mentioned in
the Indent manual as being part of the source code style. The GNU
Coding Standards don't mention it in the list of options but I tested
Indent and verified it does this.

Signed-off-by: Jason Self <j@jxself.org>
CONTRIBUTING.md

index e4d7a595fefa6076a0c499aaab3b067d34b96e35..a74571f55fd3353efad28acfbb385a40d7e107f6 100644 (file)
@@ -111,7 +111,6 @@ be used to style your code appropriately. A summary of the options
 corresponding to that style are:
 
     -l79    Set maximum line length for non-comment lines to 79.
 corresponding to that style are:
 
     -l79    Set maximum line length for non-comment lines to 79.
-    -nut    Use spaces instead of tabs.
     -bap    Enter a blank lines after function bodies.
     -bbo    Break long lines before boolean operators.
     -bl     Put braces on line after if, etc.
     -bap    Enter a blank lines after function bodies.
     -bbo    Break long lines before boolean operators.
     -bl     Put braces on line after if, etc.
@@ -131,10 +130,14 @@ corresponding to that style are:
     -ndj    Comments after declarations are treated the same as comments after other statements.
     -nfc1   Do not format comments in the first column as normal.
     -nfca   Do not format any comments.
     -ndj    Comments after declarations are treated the same as comments after other statements.
     -nfc1   Do not format comments in the first column as normal.
     -nfca   Do not format any comments.
+    -nprs   Do not put a space after every '(' and before every ')'.
     -nsc    Do not put the ‘*’ character at the left of comments.
     -nsob   Do not swallow optional blank lines.
     -pcs    Insert a space between the name of the procedure being called and the ‘(’.
     -psl    Put the type of a procedure on the line before its name.
     -nsc    Do not put the ‘*’ character at the left of comments.
     -nsob   Do not swallow optional blank lines.
     -pcs    Insert a space between the name of the procedure being called and the ‘(’.
     -psl    Put the type of a procedure on the line before its name.
+    -saf    Put a space after each for.
+    -sai    Put a space after each if.
+    -saw    Put a space after each while.
 
 How to style your code is not the only thing covered in the GNU Coding
 Standards. Please consult the Standards for complete details.
 
 How to style your code is not the only thing covered in the GNU Coding
 Standards. Please consult the Standards for complete details.