]> git.saurik.com Git - bison.git/commitdiff
* src/reader.c (parse_union_decl): Push the caracters in
authorAkim Demaille <akim@epita.fr>
Thu, 4 Oct 2001 15:07:32 +0000 (15:07 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 4 Oct 2001 15:07:32 +0000 (15:07 +0000)
union_obstack, not attrs_obstack.

ChangeLog
src/reader.c

index fe7642017bfd04fcf27ef2311a31906172e0a94d..7fcfaa6a89d6c9e18c3a8dda599301c95086f552 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 69619358e1e194bdaf4d12e392c0f7b82583d8af..9bf54dfbbb167dc6b01fde46b6a502184a7147b9 100644 (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);
        }