Updated the coding standard for indentation.
This commit is contained in:
@@ -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
|
different compilers; here are some rules for writing code that will work
|
||||||
on multiple platforms.
|
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
|
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
|
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.
|
script indent.sh to adjust all the .c and .h files.
|
||||||
|
|
||||||
Don't use C++-style comments (comments beginning with "//" and running
|
Don't use C++-style comments (comments beginning with "//" and running
|
||||||
|
|||||||
Reference in New Issue
Block a user