Changes between Version 3 and Version 4 of CodingStyle
- Timestamp:
- Dec 22, 2007, 5:22:18 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodingStyle
v3 v4 47 47 === Constants === 48 48 49 There should be few numeric constants in code. Generally they should be `#define`s.49 * There should be few numeric constants in code. Generally they should be `#define`s. 50 50 51 51 === Braces === … … 74 74 === Comments and #ifdefs === 75 75 76 * use `//` for all comments77 * comment out blocks of code as follows:76 * Use `//` for all comments. 77 * Comment out blocks of code as follows: 78 78 {{{ 79 79 #if 0 … … 91 91 === Extern declarations === 92 92 93 {{{foo.h}}} should have '{{{extern}}}' declarations for all public functions and variables in {{{foo.C}}} There should be no '{{{extern}}}' statements in {{{.C}}} files.93 * {{{foo.h}}} should have '{{{extern}}}' declarations for all public functions and variables in {{{foo.C}}} There should be no '{{{extern}}}' statements in {{{.C}}} files. 94 94 95 95 === Use of static ===