diff options
author | nik <nik@FreeBSD.org> | 2001-02-02 03:11:22 +0000 |
---|---|---|
committer | nik <nik@FreeBSD.org> | 2001-02-02 03:11:22 +0000 |
commit | e47091ebfd691b90753c35ab8052e1430955b60f (patch) | |
tree | 5d88364b230187ed2025ad54b3d66759c6e94b68 | |
parent | e23bd0b8daaff9eb8abf5d36b5089d919d61da70 (diff) | |
download | FreeBSD-src-e47091ebfd691b90753c35ab8052e1430955b60f.zip FreeBSD-src-e47091ebfd691b90753c35ab8052e1430955b60f.tar.gz |
Declaring functions inside functions was deprecated twice. Keep the
second recommendation, which includes more rationale, and nix the first.
PR: docs/24690
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su
-rw-r--r-- | share/man/man9/style.9 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 59f2fbe..b5f1762 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -382,9 +382,7 @@ function(int a1, int a2, float fl, int a4) .Pp When declaring variables in functions declare them sorted by size, then in alphabetical order; multiple ones per line are okay. -Declaring functions inside functions is not recommended, since their -linkage scope is always global. If a line overflows reuse the type -keyword. +If a line overflows reuse the type keyword. .Pp Be careful to not obfuscate the code by initializing variables in the declarations. Use this feature only thoughtfully. |