root/trunk/CodingStyle

Revision 730, 0.7 kB (checked in by michael, 23 months ago)

svn keywords corrected

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