root/tags/0.10.0/CodingStyle

Revision 547, 0.7 kB (checked in by reinelt, 4 years ago)

[lcd4linux @ 2005-05-08 04:32:43 by reinelt]
CodingStyle? added and applied

Line 
1LCD4Linux Coding Style
2
3We decided to use a common coding style to make patches and diffs
4easier to read and apply.
5
6The style we use is based on Kernighan & Ritchie and the coding style
7of the linux kernel (see /usr/src/linux/Documentation/CodingStyle),
8with some differences:
9
10- we use a indentation level of 4 spaces (Linus prefers 8)
11- we allow lines up to 150 chars (Linus uses 80)
12
13The resulting indent command is:
14indent -kr -l150
15
16There's a script called 'indent.sh' that comes with the LCD4Linux
17source package; all it does is call indent with all .c and .h files.
18
19It is always a good idea to call 'indent.sh' before any CVS operation,
20this ensures that diffs and updates won't get mixed up because of
21cosmetic changes.
Note: See TracBrowser for help on using the browser.