Changes between Version 4 and Version 5 of CodingStyle
- Timestamp:
- Dec 22, 2007, 5:23:21 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodingStyle
v4 v5 33 33 ); 34 34 }}} 35 * {{{switch}}} statements: {{{case}}} labels are at same indent level as {{{ }}}switch:35 * {{{switch}}} statements: {{{case}}} labels are at same indent level as {{{switch}}}: 36 36 {{{ 37 37 switch (foo) { … … 110 110 === Error codes === 111 111 112 * (Almost) all functions should return an integer error code. Nonzero means error. See lib/errornumbers.hfor a list of error codes.112 * (Almost) all functions should return an integer error code. Nonzero means error. See [source:trunk/boinc/lib/error_numbers.h lib/error_numbers.h] for a list of error codes. 113 113 * Calls to functions that return an error code should check the code. Generally they should return on error, e.g.: 114 114 {{{