diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-10-17 02:27:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:55 -0400 |
commit | dff4982f5cd4e30e2a140a3bca95d8814115bf5b (patch) | |
tree | f859a98784eb0318cecd9be20d3288ef7b95e2da /Documentation | |
parent | 9c6cdad7fee1630941cdd9d74ec310632a9e5c93 (diff) |
CodingStyle: relax the 80-cole rule
I would suggest this change to make CodingStyle properly reflect the style
used by the kernel, rather than the current wording which is wishful
thinking and misleading, and comes from the same school of thought that
gets off on prescriptive grammar, latin and comp.std.c
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/CodingStyle | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index 7f1730f1a1ae..6caa14615578 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle | |||
@@ -77,12 +77,15 @@ Get a decent editor and don't leave whitespace at the end of lines. | |||
77 | Coding style is all about readability and maintainability using commonly | 77 | Coding style is all about readability and maintainability using commonly |
78 | available tools. | 78 | available tools. |
79 | 79 | ||
80 | The limit on the length of lines is 80 columns and this is a hard limit. | 80 | The limit on the length of lines is 80 columns and this is a strongly |
81 | preferred limit. | ||
81 | 82 | ||
82 | Statements longer than 80 columns will be broken into sensible chunks. | 83 | Statements longer than 80 columns will be broken into sensible chunks. |
83 | Descendants are always substantially shorter than the parent and are placed | 84 | Descendants are always substantially shorter than the parent and are placed |
84 | substantially to the right. The same applies to function headers with a long | 85 | substantially to the right. The same applies to function headers with a long |
85 | argument list. Long strings are as well broken into shorter strings. | 86 | argument list. Long strings are as well broken into shorter strings. The |
87 | only exception to this is where exceeding 80 columns significantly increases | ||
88 | readability and does not hide information. | ||
86 | 89 | ||
87 | void fun(int a, int b, int c) | 90 | void fun(int a, int b, int c) |
88 | { | 91 | { |