diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2003-03-21 15:06:19 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2003-03-21 15:06:19 +0000 |
commit | 526278c97fe19c97ce04c66238127097fe4da76b (patch) | |
tree | d8df00dc7bfea8a72b0516d0b528d7d50cbb390d | |
parent | cd41c847e78ec5063fbc47a8ddfebc9e53451fff (diff) | |
download | gcc-526278c97fe19c97ce04c66238127097fe4da76b.zip gcc-526278c97fe19c97ce04c66238127097fe4da76b.tar.gz gcc-526278c97fe19c97ce04c66238127097fe4da76b.tar.bz2 |
re PR other/9813 (misplaced paragraph in Constructing Calls node)
PR doc-bug/9813
* doc/extend.texi: Move misplaced paragraph about underscores in
variables in macros.
From-SVN: r64666
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 26 |
2 files changed, 19 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2178dac..e7d8aab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + + PR doc-bug/9813 + * doc/extend.texi: Move misplaced paragraph about underscores in + variables in macros. + 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr> Richard Henderson <rth@redhat.com> diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index a5b26c4..07efa56 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -887,19 +887,6 @@ the containing function. You should specify, for @var{result}, a value returned by @code{__builtin_apply}. @end deftypefn -@cindex underscores in variables in macros -@cindex @samp{_} in variables in macros -@cindex local variables in macros -@cindex variables, local, in macros -@cindex macros, local variables in - -The reason for using names that start with underscores for the local -variables is to avoid conflicts with variable names that occur within the -expressions that are substituted for @code{a} and @code{b}. Eventually we -hope to design a new form of declaration syntax that allows you to declare -variables whose scopes start only after their initializers; this will be a -more reliable way to prevent such conflicts. - @node Typeof @section Referring to a Type with @code{typeof} @findex typeof @@ -950,6 +937,19 @@ arithmetic type and evaluates each of its arguments exactly once: _a > _b ? _a : _b; @}) @end example +@cindex underscores in variables in macros +@cindex @samp{_} in variables in macros +@cindex local variables in macros +@cindex variables, local, in macros +@cindex macros, local variables in + +The reason for using names that start with underscores for the local +variables is to avoid conflicts with variable names that occur within the +expressions that are substituted for @code{a} and @code{b}. Eventually we +hope to design a new form of declaration syntax that allows you to declare +variables whose scopes start only after their initializers; this will be a +more reliable way to prevent such conflicts. + @noindent Some more examples of the use of @code{typeof}: |