Libdmapsharing Coding StandardsLibdmapsharing Coding Standards — Description of libdmapsharing's coding standards |
int foo = x + 1 - bar (y);
if (CONSTANT == variable)not:
if (variable == CONSTANT)
if (foo) { something (); }or, in the case of function definitions:
void foo (void) { something (); }
CPPFUNC(foo);
single line summary with no period
Optional detailed description. This should use paragraph grammar,
including periods. This may be any number of lines long. Paragraphs are
separated by an empty line but are not indented. Lines are less than 80
characters long.
indent -i8 -bad -bap -br -ce -d0 -ndj -lp -pcs -psl -sc -sob foo.c