From: Joseph Myers Date: Tue, 1 Feb 2005 22:45:22 +0000 (+0000) Subject: * doc/extend.texi (Nested Functions): Update. X-Git-Tag: releases/gcc-4.0.0~1111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=475b6e22db0635ca0dfd0b9cac640ce9fd11690a;p=thirdparty%2Fgcc.git * doc/extend.texi (Nested Functions): Update. From-SVN: r94569 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 054b745832ad..735403417384 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-02-01 Joseph S. Myers + + * doc/extend.texi (Nested Functions): Update. + 2005-02-01 Richard Henderson PR 19696 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 47eb8a3dc4b8..eaea96e2245f 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1,4 +1,4 @@ -@c Copyright (C) 1988,1989,1992,1993,1994,1996,1998,1999,2000,2001,2002,2003,2004 +@c Copyright (C) 1988,1989,1992,1993,1994,1996,1998,1999,2000,2001,2002,2003,2004,2005 @c Free Software Foundation, Inc. @c This is part of the GCC manual. @c For copying conditions, see the file gcc.texi. @@ -381,8 +381,8 @@ bar (int *array, int offset, int size) @end smallexample Nested function definitions are permitted within functions in the places -where variable definitions are allowed; that is, in any block, before -the first statement in the block. +where variable definitions are allowed; that is, in any block, mixed +with the other declarations and statements in the block. It is possible to call the nested function from outside the scope of its name by storing its address or passing the address to another function: