bison-patches
[Top][All Lists]
Advanced

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

FYI: [bison-1_29-branch] comment.patch


From: marc-alexandre autret
Subject: FYI: [bison-1_29-branch] comment.patch
Date: Tue, 18 Sep 2001 13:34:30 +0000 (GMT)

Fix a problem reported about C comments in the generated parser.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.36
diff -u -r1.173.2.36 ChangeLog
--- ChangeLog   2001/09/18 11:14:21     1.173.2.36
+++ ChangeLog   2001/09/18 11:30:42
@@ -1,5 +1,11 @@
 2001-09-18  Marc Autret  <address@hidden>
 
+       * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
+       do that.
+       Reported by Keith Browne.
+       
+2001-09-18  Marc Autret  <address@hidden>
+       
        * tests/output.at: Add tests for --defines and --graph.
 
 2001-09-18  Marc Autret  <address@hidden>
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/18 11:30:42
@@ -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.4
diff -u -r1.72.2.4 reader.c
--- src/reader.c        2001/09/17 22:20:08     1.72.2.4
+++ src/reader.c        2001/09/18 11:30:43
@@ -736,10 +736,15 @@
 
   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':


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



reply via email to

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