bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bison-1_29-branch] comment.patch


From: marc-alexandre autret
Subject: [bison-1_29-branch] comment.patch
Date: Fri, 14 Sep 2001 13:43:32 +0000 (GMT)

Hi,

A patch to fix the comments problem.



Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.31
diff -u -r1.173.2.31 ChangeLog
--- ChangeLog   2001/09/10 09:59:39     1.173.2.31
+++ ChangeLog   2001/09/14 11:43:14
@@ -1,3 +1,9 @@
+2001-09-14  Marc Autret  <address@hidden>
+
+       * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
+       do that.
+       Reported by Keith Browne.
+       
 2001-09-10  Akim Demaille  <address@hidden>
 
        * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
Index: THANKS
===================================================================
RCS file: /cvsroot/bison/bison/THANKS,v
retrieving revision 1.10.2.1
diff -u -r1.10.2.1 THANKS
--- THANKS      2001/08/28 13:58:27     1.10.2.1
+++ THANKS      2001/09/14 11:43:14
@@ -9,6 +9,7 @@
 Jesse Thilo            address@hidden
 Jim Meyering           address@hidden
 Juan Manuel Guerrero   address@hidden
+Keith Browne           address@hidden
 Laurent Mascherpa      address@hidden
 Marc Autret             address@hidden
 Neil Booth             address@hidden
Index: src/reader.c
===================================================================
RCS file: /cvsroot/bison/bison/src/reader.c,v
retrieving revision 1.72.2.3
diff -u -r1.72.2.3 reader.c
--- src/reader.c        2001/09/10 08:33:25     1.72.2.3
+++ src/reader.c        2001/09/14 11:43:15
@@ -736,10 +736,13 @@
 
   while (c != EOF)
     {
-      obstack_1grow (&attrs_obstack, c);
-      if (defines_flag)
-       obstack_1grow (&defines_obstack, c);
-
+      if (c != '/')
+       {
+         obstack_1grow (&attrs_obstack, c);
+         if (defines_flag)
+           obstack_1grow (&defines_obstack, c);
+       }
+      
       switch (c)
        {
        case '\n':


-- 
Autret Marc (address@hidden)
Eleve Ingenieur en Informatique.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]