X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/4c04c52a9ddbccd1013eb7d9df6b56849bf8af41..3a4f411faac41469beb2004a5d49c19812a586ad:/doc/bison.texinfo diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 9e899613..4b0aeb34 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -5784,9 +5784,13 @@ redeclare a typedef name provided an explicit type has been specified 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) +@{ + static bar (bar); /* @r{redeclare @code{bar} as static variable} */ + extern foo foo (foo); /* @r{redeclare @code{foo} as function} */ + return foo (bar); +@} @end example Unfortunately, the name being declared is separated from the declaration