Page MenuHomeFreeBSD

D35959.id108575.diff
No OneTemporary

D35959.id108575.diff

Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -535,7 +535,9 @@
.Li FALLTHROUGH
comment.
Numerical arguments should be checked for accuracy.
-Code which is unreachable for non-obvious reasons may be marked /*
+Code which is unreachable for non-obvious reasons should be marked
+.Fn __assert_unreachable
+instead of the older /*
.Li NOTREACHED
*/.
.Bd -literal
@@ -701,8 +703,7 @@
If a line overflows reuse the type keyword.
Variables may be initialized where declared especially when they
are constant for the rest of the scope.
-Declarations may be placed before executable lines at the start
-of any block.
+Declarations may be in any block, but must be placed before statements.
Calls to complicated functions should be avoided when initializing variables.
.Bd -literal
struct foo one, *two;

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 3, 4:34 AM (7 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35893509
Default Alt Text
D35959.id108575.diff (916 B)

Event Timeline