* src/reader.c (parse_union_decl): Push the caracters in

union_obstack, not attrs_obstack.
This commit is contained in:
Akim Demaille
2001-10-04 15:07:32 +00:00
parent 342b8b6e21
commit f6ec6d13dc
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2001-10-04 Akim Demaille <akim@epita.fr>
* src/reader.c (parse_union_decl): Push the caracters in
union_obstack, not attrs_obstack.
2001-10-04 Akim Demaille <akim@epita.fr>
Merge in the branch 1.29.

View File

@@ -748,6 +748,8 @@ parse_union_decl (void)
typed = 1;
/* FIXME: I'm worried: are you sure attrs_obstack is properly
filled? */
if (no_lines_flag)
obstack_1grow (&attrs_obstack, '\n');
@@ -763,7 +765,7 @@ parse_union_decl (void)
/* If C contains '/', it is output by copy_comment (). */
if (c != '/')
{
obstack_1grow (&attrs_obstack, c);
obstack_1grow (&union_obstack, c);
if (defines_flag)
obstack_1grow (&defines_obstack, c);
}