* c-exp.y (parse_number): Don't use K&R definition.

(yylex): Likewise.
	(yyerror): Likewise.
This commit is contained in:
Tom Tromey 2009-06-05 17:18:37 +00:00
parent fc1e878931
commit 68c1b02dc9
2 changed files with 9 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2009-06-05 Tom Tromey <tromey@redhat.com>
* c-exp.y (parse_number): Don't use K&R definition.
(yylex): Likewise.
(yyerror): Likewise.
2009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> 2009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
* varobj.c (varobj_update): Fix out of scope varobjs to not to change. * varobj.c (varobj_update): Fix out of scope varobjs to not to change.

View File

@ -1139,11 +1139,7 @@ name_not_typename : NAME
/*** Needs some error checking for the float case ***/ /*** Needs some error checking for the float case ***/
static int static int
parse_number (p, len, parsed_float, putithere) parse_number (char *p, int len, int parsed_float, YYSTYPE *putithere)
char *p;
int len;
int parsed_float;
YYSTYPE *putithere;
{ {
/* FIXME: Shouldn't these be unsigned? We don't deal with negative values /* FIXME: Shouldn't these be unsigned? We don't deal with negative values
here, and we do kind of silly things like cast to unsigned. */ here, and we do kind of silly things like cast to unsigned. */
@ -1808,7 +1804,7 @@ static int last_was_structop;
/* Read one token, getting characters through lexptr. */ /* Read one token, getting characters through lexptr. */
static int static int
yylex () yylex (void)
{ {
int c; int c;
int namelen; int namelen;
@ -2209,8 +2205,7 @@ c_parse (void)
void void
yyerror (msg) yyerror (char *msg)
char *msg;
{ {
if (prev_lexptr) if (prev_lexptr)
lexptr = prev_lexptr; lexptr = prev_lexptr;