]> git.saurik.com Git - bison.git/commitdiff
* src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
authorMarc Autret <autret_m@epita.fr>
Tue, 18 Sep 2001 11:37:11 +0000 (11:37 +0000)
committerMarc Autret <autret_m@epita.fr>
Tue, 18 Sep 2001 11:37:11 +0000 (11:37 +0000)
do that.
Reported by Keith Browne.

ChangeLog
THANKS
src/reader.c

index 280ca09aabcbd647fb98f259e46b28a0ee8e53bf..69d1d58849c7a7c93cb6b66ff5492e85bb3d2b53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2001-09-18  Marc Autret  <autret_m@epita.fr>
 
+       * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
+       do that.
+       Reported by Keith Browne.
+       
+2001-09-18  Marc Autret  <autret_m@epita.fr>
+       
        * tests/output.at: Add tests for --defines and --graph.
 
 2001-09-18  Marc Autret  <autret_m@epita.fr>
diff --git a/THANKS b/THANKS
index 3a421e2073e132aec573e889d3994eae530a9f51..3f0c33e4a929c830398d02cd4a786eb6a2827002 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -9,6 +9,7 @@ Hans Aberg              haberg@matematik.su.se
 Jesse Thilo            jthilo@gnu.org
 Jim Meyering           meyering@gnu.org
 Juan Manuel Guerrero   ST001906@HRZ1.HRZ.TU-Darmstadt.De
+Keith Browne           kbrowne@legato.com
 Laurent Mascherpa      laurent.mascherpa@epita.fr
 Marc Autret             autret_m@epita.fr
 Neil Booth             NeilB@earthling.net
index 52ed614502aa5a2b84011e7f4e1a3713144f76de..6fbadebbc35d03f34af8e060d46c6ba9f41cb071 100644 (file)
@@ -736,10 +736,15 @@ parse_union_decl (void)
 
   while (c != EOF)
     {
-      obstack_1grow (&attrs_obstack, c);
-      if (defines_flag)
-       obstack_1grow (&defines_obstack, c);
-
+      
+      /* If C contains '/', it is output by copy_comment ().  */
+      if (c != '/')
+       {
+         obstack_1grow (&attrs_obstack, c);
+         if (defines_flag)
+           obstack_1grow (&defines_obstack, c);
+       }
+      
       switch (c)
        {
        case '\n':