Back-out my previous change. See the thread at

http://lists.freebsd.org/pipermail/cvs-all/2008-July/263779.html
This commit is contained in:
Daniel Gerzo 2008-07-10 11:24:41 +00:00
parent b4d3a08be1
commit 6b527d112c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180424

View file

@ -26,7 +26,7 @@
.\" From: @(#)style 1.14 (Berkeley) 4/28/95 .\" From: @(#)style 1.14 (Berkeley) 4/28/95
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 9, 2008 .Dd February 10, 2005
.Dt STYLE 9 .Dt STYLE 9
.Os .Os
.Sh NAME .Sh NAME
@ -640,8 +640,11 @@ DO NOT use function calls in initializers.
four = myfunction(); four = myfunction();
.Ed .Ed
.Pp .Pp
Do not declare functions inside other functions; nested functions are Do not declare functions inside other functions; ANSI C says that
a GCC extension and are not permitted by ANSI C. 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 .Pp
Casts and Casts and
.Ic sizeof Ns 's .Ic sizeof Ns 's