diff options
author | danger <danger@FreeBSD.org> | 2008-07-09 14:04:28 +0000 |
---|---|---|
committer | danger <danger@FreeBSD.org> | 2008-07-09 14:04:28 +0000 |
commit | 7c6cdcc163edf9a39cbd62d320229701e0774313 (patch) | |
tree | faef7a77e41f5f48b756374e5920859361447d7b /share/man/man9/style.9 | |
parent | 5bc4fd4e149da9385f22cc4c7ae7fc4a8dd72d9a (diff) | |
download | FreeBSD-src-7c6cdcc163edf9a39cbd62d320229701e0774313.zip FreeBSD-src-7c6cdcc163edf9a39cbd62d320229701e0774313.tar.gz |
- nested functions are a GCC extensions and should not be used
Submitted by: gahr
MFC after: 3 days
Diffstat (limited to 'share/man/man9/style.9')
-rw-r--r-- | share/man/man9/style.9 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index c7ccd25..3a91dc4 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 February 10, 2005 +.Dd July 9, 2008 .Dt STYLE 9 .Os .Sh NAME @@ -640,11 +640,8 @@ DO NOT use function calls in initializers. four = myfunction(); .Ed .Pp -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. +Do not declare functions inside other functions; nested functions are +a GCC extension and are not permitted by ANSI C. .Pp Casts and .Ic sizeof Ns 's |