This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for nested functions docs

I noticed that the documentation of nested functions was out of date in 
that it didn't allow for mixed declarations and code.  Fixed thus.  It 
passes "make info" and "make dvi".  Applied to mainline.

Joseph S. Myers      (personal mail) (CodeSourcery mail) (Bugzilla assignments and CCs)

Index: ChangeLog
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.7367
diff -u -r2.7367 ChangeLog
--- ChangeLog	1 Feb 2005 20:56:03 -0000	2.7367
+++ ChangeLog	1 Feb 2005 22:42:24 -0000
@@ -1,3 +1,7 @@
+2005-02-01  Joseph S. Myers  <>
+	* doc/extend.texi (Nested Functions): Update.
 2005-02-01  Richard Henderson  <>
 	PR 19696
Index: doc/extend.texi
RCS file: /cvs/gcc/gcc/gcc/doc/extend.texi,v
retrieving revision 1.236
diff -u -r1.236 extend.texi
--- doc/extend.texi	31 Jan 2005 23:18:49 -0000	1.236
+++ doc/extend.texi	1 Feb 2005 22:42:27 -0000
@@ -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 @@
 @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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]