|
Revision 730, 0.7 kB
(checked in by michael, 2 years ago)
|
|
svn keywords corrected
|
-
Property svn:keywords set to
Id URL
|
| Line | |
|---|
| 1 | $Id$ |
|---|
| 2 | $URL$ |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | LCD4Linux Coding Style |
|---|
| 6 | |
|---|
| 7 | We decided to use a common coding style to make patches and diffs |
|---|
| 8 | easier to read and apply. |
|---|
| 9 | |
|---|
| 10 | The style we use is based on Kernighan & Ritchie and the coding style |
|---|
| 11 | of the linux kernel (see /usr/src/linux/Documentation/CodingStyle), |
|---|
| 12 | with 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 | |
|---|
| 17 | The resulting indent command is: |
|---|
| 18 | indent -kr -l150 |
|---|
| 19 | |
|---|
| 20 | There's a script called 'indent.sh' that comes with the LCD4Linux |
|---|
| 21 | source package; all it does is call indent with all .c and .h files. |
|---|
| 22 | |
|---|
| 23 | It is always a good idea to call 'indent.sh' before any SVN operation, |
|---|
| 24 | this ensures that diffs and updates won't get mixed up because of |
|---|
| 25 | cosmetic changes. |
|---|