* 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:
Joel E. Denny
2006-07-13 20:05:34 +00:00
parent 2ce4ed68c9
commit 50a339934c
5 changed files with 153 additions and 133 deletions

View File

@@ -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);