Debian Codegraph @

doc/CodingStyle.md

raw
1 Most developers find Linux coding style easy to read, and there is
2 really no reason to reinvent this practise, so procps-ng goes along
3 with others.
4
5 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob_plain;f=Documentation/CodingStyle
6
7 In addition to Linux coding style this project has few additional
8 wishes to contributors.
9
10 * Many small patches are favoured over one big. Break down is done on
11 basis of logical functionality; for example #endif mark ups,
12 compiler warning and exit codes fixes all should be individual
13 small patches.
14
15 * Use 'FIXME: ' in code comments, manual pages, autotools files,
16 scripts and so on to indicate something is wrong. The reason we do
17 is as simple as being able to find easily where problem areas are.
18
19 * In writing arithmetic comparisons, use "<" and "<=" rather than
20 ">" and ">=". For some justification, read this:
21 http://thread.gmane.org/gmane.comp.version-control.git/3903/focus=4126
22
23 * Be nice to translators. Don't change translatable strings if you
24 can avoid it. If you must rearrange individual lines (e.g., in
25 multi-line --help strings), extract and create new strings, rather
26 than extracting and moving into existing blocks. This avoids
27 making unnecessary work for translators.