aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-06-05 17:18:37 +0000
committerTom Tromey <tromey@redhat.com>2009-06-05 17:18:37 +0000
commit68c1b02dc9066d3871b7f578ebd57630be37dbfe (patch)
treefeac64a35cb8b8de4122d00866cacf7c859d9116 /gdb/c-exp.y
parentfc1e8789317e3b99c26413c421aaeba3990eaa5d (diff)
downloadgdb-68c1b02dc9066d3871b7f578ebd57630be37dbfe.zip
gdb-68c1b02dc9066d3871b7f578ebd57630be37dbfe.tar.gz
gdb-68c1b02dc9066d3871b7f578ebd57630be37dbfe.tar.bz2
* c-exp.y (parse_number): Don't use K&R definition.
(yylex): Likewise. (yyerror): Likewise.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 688c060..d8b3975 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1139,11 +1139,7 @@ name_not_typename : NAME
/*** Needs some error checking for the float case ***/
static int
-parse_number (p, len, parsed_float, putithere)
- char *p;
- int len;
- int parsed_float;
- YYSTYPE *putithere;
+parse_number (char *p, int len, int parsed_float, YYSTYPE *putithere)
{
/* 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. */
@@ -1808,7 +1804,7 @@ static int last_was_structop;
/* Read one token, getting characters through lexptr. */
static int
-yylex ()
+yylex (void)
{
int c;
int namelen;
@@ -2209,8 +2205,7 @@ c_parse (void)
void
-yyerror (msg)
- char *msg;
+yyerror (char *msg)
{
if (prev_lexptr)
lexptr = prev_lexptr;