summaryrefslogtreecommitdiffstats
path: root/share/man/man9/style.9
diff options
context:
space:
mode:
authordanger <danger@FreeBSD.org>2008-07-10 11:24:41 +0000
committerdanger <danger@FreeBSD.org>2008-07-10 11:24:41 +0000
commitb35e10e860cd9d4a3a80e3cdae706928a3545cda (patch)
treed556bb9f54f731aa97c253dc05f413d646423f2d /share/man/man9/style.9
parente539172ce07f9de8cfc3419e87eb4d638321579f (diff)
downloadFreeBSD-src-b35e10e860cd9d4a3a80e3cdae706928a3545cda.zip
FreeBSD-src-b35e10e860cd9d4a3a80e3cdae706928a3545cda.tar.gz
Back-out my previous change. See the thread at
http://lists.freebsd.org/pipermail/cvs-all/2008-July/263779.html
Diffstat (limited to 'share/man/man9/style.9')
-rw-r--r--share/man/man9/style.99
1 files changed, 6 insertions, 3 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 3a91dc4..c7ccd25 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -26,7 +26,7 @@
.\" From: @(#)style 1.14 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd July 9, 2008
+.Dd February 10, 2005
.Dt STYLE 9
.Os
.Sh NAME
@@ -640,8 +640,11 @@ DO NOT use function calls in initializers.
four = myfunction();
.Ed
.Pp
-Do not declare functions inside other functions; nested functions are
-a GCC extension and are not permitted by ANSI C.
+Do not declare functions inside other functions; ANSI C says that
+such declarations have file scope regardless of the nesting of the
+declaration.
+Hiding file declarations in what appears to be a local
+scope is undesirable and will elicit complaints from a good compiler.
.Pp
Casts and
.Ic sizeof Ns 's
OpenPOWER on IntegriCloud