From: Marc Autret Date: Tue, 18 Sep 2001 11:37:11 +0000 (+0000) Subject: * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment X-Git-Tag: BISON-1_29a~12 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/7972022dacfc1bf9838a6d23502f1d5958465f88 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment do that. Reported by Keith Browne. --- diff --git a/ChangeLog b/ChangeLog index 280ca09a..69d1d588 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2001-09-18 Marc Autret + * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment + do that. + Reported by Keith Browne. + +2001-09-18 Marc Autret + * tests/output.at: Add tests for --defines and --graph. 2001-09-18 Marc Autret diff --git a/THANKS b/THANKS index 3a421e20..3f0c33e4 100644 --- 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 diff --git a/src/reader.c b/src/reader.c index 52ed6145..6fbadebb 100644 --- a/src/reader.c +++ b/src/reader.c @@ -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':