Updated the coding standard for indentation.

This commit is contained in:
skarg
2007-07-25 21:04:21 +00:00
parent 60a3f94c9d
commit 07148e107a
+3 -2
View File
@@ -2,10 +2,11 @@ This software runs on many platforms, and can be compiled with a number of
different compilers; here are some rules for writing code that will work
on multiple platforms.
Regarding tabs, indenting, and code style: we run "indent -kr -nut -nlp"
Regarding tabs, indenting, and code style, we run:
$ indent -kr -nut -nlp -ip4 -cli4 filename.c
on the code prior to releasing it. This ensures a standard look and feel
to the code regardless of the authors preferred style. You may certainly
adjust the code to your preferred style using the indent tool. We use the
adjust the code to your preferred style using an indent tool. We use the
script indent.sh to adjust all the .c and .h files.
Don't use C++-style comments (comments beginning with "//" and running