aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-exp.y
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2012-01-16 21:03:36 +0000
committerSergio Durigan Junior <sergiodj@redhat.com>2012-01-16 21:03:36 +0000
commitd04550a6d725119a01c38046a7afd3a7bfddef5a (patch)
tree67929956a1ab28c35fa8e9adaaed5c697fe5e8e5 /gdb/f-exp.y
parent4aac40c83727ce9e8ec9d6968d589df0939c9827 (diff)
downloadgdb-d04550a6d725119a01c38046a7afd3a7bfddef5a.zip
gdb-d04550a6d725119a01c38046a7afd3a7bfddef5a.tar.gz
gdb-d04550a6d725119a01c38046a7afd3a7bfddef5a.tar.bz2
2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
* f-exp.y (parse_number): Convert prototype from K&R to ANSI C. (growbuf_by_size): Likewise. (yyerror): Likewise. * m2-exp.y (make_qualname): Remove function (was #if 0'ed). (modblock): Remove variable (was #if 0'ed). (parse_number): Convert prototype from K&R to ANSI C. (yyerror): Likewise. * objc-exp.y (parse_number): Likewise. (yyerror): Likewise. (yylex): Remove #if 0'ed code. * p-exp.y (uptok): Convert prototype from K&R to ANSI C. (yyerror): Likewise.
Diffstat (limited to 'gdb/f-exp.y')
-rw-r--r--gdb/f-exp.y12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index fa464cf..b258c0a 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -664,11 +664,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)
{
LONGEST n = 0;
LONGEST prevn = 0;
@@ -895,8 +891,7 @@ static int tempbufindex; /* Current index into buffer */
first one on demand. */
static void
-growbuf_by_size (count)
- int count;
+growbuf_by_size (int count)
{
int growby;
@@ -1217,8 +1212,7 @@ yylex (void)
}
void
-yyerror (msg)
- char *msg;
+yyerror (char *msg)
{
if (prev_lexptr)
lexptr = prev_lexptr;