summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2002-09-10 10:54:39 +0000
committerfanf <fanf@FreeBSD.org>2002-09-10 10:54:39 +0000
commitf21645dfc296a1b300c85a784a37a1b2c3200fe2 (patch)
treef8b8e66e039e5301d8321ff6b5db71b706223623 /share
parentc0578a26a51e37046e343f46463430e45f65c203 (diff)
downloadFreeBSD-src-f21645dfc296a1b300c85a784a37a1b2c3200fe2.zip
FreeBSD-src-f21645dfc296a1b300c85a784a37a1b2c3200fe2.tar.gz
Remove a sentence about wrapping macro definitions in bare braces,
which became wrong after using do { } while (0) became recommended. Move the definition of what braces are to their new first occurrence. Reviewed by: bde
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/style.911
1 files changed, 5 insertions, 6 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 0f6c59b..c48c32f 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -162,11 +162,6 @@ all in lowercase and the macro has the same name all in uppercase.
.\" same and you #undef the macro (if any) to get the function.
.\" It is not followed for MALLOC(), and not very common if inline
.\" functions are used.
-If a
-macro needs more than a single line, use braces
-.Ql ( \&{
-and
-.Ql \&} ) .
Right-justify the
backslashes; it makes it easier to read.
If the macro encapsulates a compound statement, enclose it in a
@@ -376,7 +371,11 @@ comment.
.Pp
Space after keywords
.Pq Ic if , while , for , return , switch .
-No braces are
+No braces
+.Ql ( \&{
+and
+.Ql \&} )
+are
used for control statements with zero or only a single statement unless that
statement is more than a single line in which case they are permitted.
Forever loops are done with
OpenPOWER on IntegriCloud