summaryrefslogtreecommitdiffstats
path: root/gdb/p-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/p-exp.y
parent4aac40c83727ce9e8ec9d6968d589df0939c9827 (diff)
downloadppe42-binutils-d04550a6d725119a01c38046a7afd3a7bfddef5a.tar.gz
ppe42-binutils-d04550a6d725119a01c38046a7afd3a7bfddef5a.zip
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/p-exp.y')
-rw-r--r--gdb/p-exp.y8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 7b05d585f5..4be3e6e432 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -1093,9 +1093,8 @@ static const struct token tokentab2[] =
/* Allocate uppercased var: */
/* make an uppercased copy of tokstart. */
-static char * uptok (tokstart, namelen)
- char *tokstart;
- int namelen;
+static char *
+uptok (char *tokstart, int namelen)
{
int i;
char *uptokstart = (char *)malloc(namelen+1);
@@ -1732,8 +1731,7 @@ yylex (void)
}
void
-yyerror (msg)
- char *msg;
+yyerror (char *msg)
{
if (prev_lexptr)
lexptr = prev_lexptr;
OpenPOWER on IntegriCloud