mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
* src/parse-gram.y (grammar_declaration): Don't confuse Doxygen (at
least 1.4.7 and 1.4.4) by putting a #line between `typedef union
YYSTYPE' and `{'.
* src/muscle_tab.h (muscle_grow): Replace the header comments with
those from muscle_tab.c since the old ones are misleading.
This commit is contained in:
@@ -304,14 +304,20 @@ grammar_declaration:
|
||||
{
|
||||
char const *body = $3;
|
||||
|
||||
if (union_seen)
|
||||
/* Concatenate the %union bodies. If this is the first %union, make sure
|
||||
the synchronization line appears after the opening '{' so as not to
|
||||
confuse Doxygen. Otherwise, turn the previous %union's trailing '}'
|
||||
into '\n', and omit the new %union's leading '{'. */
|
||||
if (!union_seen)
|
||||
{
|
||||
muscle_grow ("stype", "{", "");
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Concatenate the union bodies, turning the first one's
|
||||
trailing '}' into '\n', and omitting the second one's '{'. */
|
||||
char *code = muscle_find ("stype");
|
||||
code[strlen (code) - 1] = '\n';
|
||||
body++;
|
||||
}
|
||||
body++;
|
||||
|
||||
union_seen = true;
|
||||
muscle_code_grow ("stype", body, @3);
|
||||
|
||||
Reference in New Issue
Block a user