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
This commit is contained in:
Nik Clayton 2001-02-02 03:11:22 +00:00
parent 01c78dbb09
commit 4444ad36bf

View File

@ -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.