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

From-SVN: r24345
This commit is contained in:
Tom Tromey 1998-12-16 15:53:13 +00:00 committed by Tom Tromey
parent 50714e797c
commit 0252081c1a
3 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
1998-12-16 Tom Tromey <tromey@cygnus.com>
* parse-scan.y (qualified_name): Use correct sprintf format.
1998-12-15 Tom Tromey <tromey@cygnus.com>
* gjavah.c (print_field_info): Changed how most negative number is

View File

@ -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;

View File

@ -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;
}
;