diff options
author | fanf <fanf@FreeBSD.org> | 2002-09-10 10:54:39 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-09-10 10:54:39 +0000 |
commit | f21645dfc296a1b300c85a784a37a1b2c3200fe2 (patch) | |
tree | f8b8e66e039e5301d8321ff6b5db71b706223623 /share/man/man9/style.9 | |
parent | c0578a26a51e37046e343f46463430e45f65c203 (diff) | |
download | FreeBSD-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/man/man9/style.9')
-rw-r--r-- | share/man/man9/style.9 | 11 |
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 |