From 0252081c1ad84d0605f2c86f3f8b84d7b6e8d805 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 16 Dec 1998 15:53:13 +0000 Subject: [PATCH] * parse-scan.y (qualified_name): Use correct sprintf format. From-SVN: r24345 --- gcc/java/ChangeLog | 4 ++++ gcc/java/parse-scan.c | 10 +++++----- gcc/java/parse-scan.y | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index a3b36c2fd09..e86a2b60c08 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +1998-12-16 Tom Tromey + + * parse-scan.y (qualified_name): Use correct sprintf format. + 1998-12-15 Tom Tromey * gjavah.c (print_field_info): Changed how most negative number is diff --git a/gcc/java/parse-scan.c b/gcc/java/parse-scan.c index 654cc103254..eff77522969 100644 --- a/gcc/java/parse-scan.c +++ b/gcc/java/parse-scan.c @@ -1370,7 +1370,7 @@ static const short yycheck[] = { 3, #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 @@ static const short yycheck[] = { 3, 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 @@ __yy_memcpy (char *to, char *from, int count) #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 @@ case 24: #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 @@ case 337: 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; diff --git a/gcc/java/parse-scan.y b/gcc/java/parse-scan.y index 0324bb9369a..a5859c454f5 100644 --- a/gcc/java/parse-scan.y +++ b/gcc/java/parse-scan.y @@ -250,7 +250,7 @@ qualified_name: 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; } ;