summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-22 10:35:02 +0000
committerdd <dd@FreeBSD.org>2001-07-22 10:35:02 +0000
commit6704b1f89ea03a4cadef132b11ddc0bf5b9a3c61 (patch)
treec531cfb461722c29eeb78dbced21298509211297
parentae62c846d37482ceec97eabcf17b2d26277f5998 (diff)
downloadFreeBSD-src-6704b1f89ea03a4cadef132b11ddc0bf5b9a3c61.zip
FreeBSD-src-6704b1f89ea03a4cadef132b11ddc0bf5b9a3c61.tar.gz
Add: ``If you have to wrap a long statement, put the operator at the
end of the line.'' Reviewed by: alfred, bde
-rw-r--r--share/man/man9/style.95
1 files changed, 4 insertions, 1 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 9696f5c..3887004 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -339,8 +339,11 @@ inside blocks unless the routine is unusually complicated.
.Pp
Indentation is an 8 character tab.
Second level indents are four spaces.
+If you have to wrap a long statement, put the operator at the end of the
+line.
.Bd -literal
- while (cnt < 20)
+ while (cnt < 20 && this_variable_name_is_too_long_for_its_own_good &&
+ ep != NULL)
z = a + really + long + statement + that + needs +
two lines + gets + indented + four + spaces +
on + the + second + and + subsequent + lines;
OpenPOWER on IntegriCloud