Page MenuHomeFreeBSD

D35959.id108577.diff
No OneTemporary

D35959.id108577.diff

Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -535,9 +535,11 @@
.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
-*/.
+*/ in the kernel, but use the latter otherwise.
.Bd -literal
while ((ch = getopt(argc, argv, "abNn:")) != -1)
switch (ch) { /* Indent the switch. */
@@ -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
Sat, Jan 17, 9:08 PM (13 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27699277
Default Alt Text
D35959.id108577.diff (1 KB)

Event Timeline