diff --git a/bacnet-stack/doc/code-standard.txt b/bacnet-stack/doc/code-standard.txt index 4045bbad..441106fb 100644 --- a/bacnet-stack/doc/code-standard.txt +++ b/bacnet-stack/doc/code-standard.txt @@ -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