summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-07-25 00:30:24 +0000
committerimp <imp@FreeBSD.org>2002-07-25 00:30:24 +0000
commitb28c5c5701f62b2b15a6d6364416d9a04210bfc0 (patch)
tree057e22d12f6029e623278c5baedab18dda72104e /share/man
parent0374f9c1bbe20bbce29a016a8e09667406502ede (diff)
downloadFreeBSD-src-b28c5c5701f62b2b15a6d6364416d9a04210bfc0.zip
FreeBSD-src-b28c5c5701f62b2b15a6d6364416d9a04210bfc0.tar.gz
Clarify the sizeof(var) rule. This is the result of the consensus in
arch@ between myself, bde and markm. I kept the parts that all of us agreed to, and omitted some more extensive text that I'd originally wanted.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/style.95
1 files changed, 5 insertions, 0 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 43d8e38..a548288 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -520,6 +520,11 @@ are not followed by a space.
Note that
.Xr indent 1
does not understand this rule.
+.Ic sizeof Ns 's
+are written with parenthesis always.
+The redundant parenthesis rules do not apply to
+.Ic sizeof(var)
+instances.
.Pp
.Dv NULL
is the preferred null pointer constant.
OpenPOWER on IntegriCloud