bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Documentation bug


From: Paul Eggert
Subject: Re: Documentation bug
Date: Mon, 28 Feb 2005 16:44:30 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Thanks for that report.  I installed this patch (resisting the
temptation to write the valid declaration "extern foo foo (foo foo);" :-).

2005-02-28  Paul Eggert  <address@hidden>

        * doc/bison.texinfo (Semantic Tokens): Fix scoping problem in
        example, reported by Derek M Jones.  Also, make the example even
        more outrageous, to better illustrate how bad the problem is.

--- bison.texinfo.~1.141.~      2005-02-24 09:17:28 -0800
+++ bison.texinfo       2005-02-28 16:39:10 -0800
@@ -5784,9 +5784,13 @@ redeclare a typedef name provided an exp
 earlier:
 
 @example
-typedef int foo, bar, lose;
-static foo (bar);        /* @r{redeclare @code{bar} as static variable} */
-static int foo (lose);   /* @r{redeclare @code{foo} as function} */
+typedef int foo, bar;
+int baz (void)
address@hidden
+  static bar (bar);      /* @r{redeclare @code{bar} as static variable} */
+  extern foo foo (foo);  /* @r{redeclare @code{foo} as function} */
+  return foo (bar);
address@hidden
 @end example
 
 Unfortunately, the name being declared is separated from the declaration




reply via email to

[Prev in Thread] Current Thread [Next in Thread]