PATCH: bug fix in jv-scan

Tom Tromey tromey@cygnus.com
Wed Dec 16 15:51:00 GMT 1998


I'm committing the appended patch.  It fixes a simple typo that
prevented `jv-scan --list-class' from working correctly.

1998-12-16  Tom Tromey  <tromey@cygnus.com>

	* parse-scan.y (qualified_name): Use correct sprintf format.

Tom

Index: parse-scan.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/parse-scan.c,v
retrieving revision 1.2
diff -u -r1.2 parse-scan.c
--- parse-scan.c	1998/11/27 10:25:17	1.2
+++ parse-scan.c	1998/12/16 23:48:37
@@ -1370,7 +1370,7 @@
 #define YYPURE 1
 
 /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
-#line 3 "/usr/lib/bison.simple"
+#line 3 "/usr/share/misc/bison.simple"
 
 /* Skeleton output parser for bison,
    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -1387,7 +1387,7 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 /* As a special exception, when this file is copied by Bison into a
    Bison output file, you may use that output file without restriction.
@@ -1563,7 +1563,7 @@
 #endif
 #endif
 
-#line 196 "/usr/lib/bison.simple"
+#line 196 "/usr/share/misc/bison.simple"
 
 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
    into yyparse.  The argument should have type void *.
@@ -1910,7 +1910,7 @@
 #line 251 "./parse-scan.y"
 { 
 		  char *n = xmalloc (strlen (yyvsp[-2].node)+strlen (yyvsp[0].node)+2);
-		  sprintf (n, "%s.s", yyvsp[-2].node, yyvsp[0].node);
+		  sprintf (n, "%s.%s", yyvsp[-2].node, yyvsp[0].node);
 		  yyval.node = n;
 		;
     break;}
@@ -2117,7 +2117,7 @@
     break;}
 }
    /* the action file gets copied in in place of this dollarsign */
-#line 498 "/usr/lib/bison.simple"
+#line 498 "/usr/share/misc/bison.simple"
 
   yyvsp -= yylen;
   yyssp -= yylen;
Index: parse-scan.y
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/parse-scan.y,v
retrieving revision 1.2
diff -u -r1.2 parse-scan.y
--- parse-scan.y	1998/11/27 10:25:16	1.2
+++ parse-scan.y	1998/12/16 23:48:39
@@ -250,7 +250,7 @@
 	name DOT_TK identifier
 		{ 
 		  char *n = xmalloc (strlen ($1)+strlen ($3)+2);
-		  sprintf (n, "%s.s", $1, $3);
+		  sprintf (n, "%s.%s", $1, $3);
 		  $$ = n;
 		}
 ;



More information about the Gcc-patches mailing list