summaryrefslogtreecommitdiff
path: root/gdb/m2-exp.y
diff options
context:
space:
mode:
authorsergiodj <sergiodj>2012-01-16 21:03:36 +0000
committersergiodj <sergiodj>2012-01-16 21:03:36 +0000
commitb07c527f5b38d57f43c159e793b67dceae34f6d6 (patch)
treee0dac13db25491dd5f425ade5fbba3c741a98363 /gdb/m2-exp.y
parent024e0e8b29c57131c65424b31e931e6f8f511248 (diff)
downloadgdb-b07c527f5b38d57f43c159e793b67dceae34f6d6.tar.gz
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/m2-exp.y')
-rw-r--r--gdb/m2-exp.y29
1 files changed, 2 insertions, 27 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y
index ef9ec8e9eab..af6c400a948 100644
--- a/gdb/m2-exp.y
+++ b/gdb/m2-exp.y
@@ -113,21 +113,11 @@ static int yylex (void);
void yyerror (char *);
-#if 0
-static char *make_qualname (char *, char *);
-#endif
-
static int parse_number (int);
/* The sign of the number being parsed. */
static int number_sign = 1;
-/* The block that the module specified by the qualifer on an identifer is
- contained in, */
-#if 0
-static struct block *modblock=0;
-#endif
-
%}
/* Although the yacc "value" of an expression is not used,
@@ -665,8 +655,7 @@ type
/*** Needs some error checking for the float case ***/
static int
-parse_number (olen)
- int olen;
+parse_number (int olen)
{
char *p = lexptr;
LONGEST n = 0;
@@ -1076,22 +1065,8 @@ yylex (void)
}
}
-#if 0 /* Unused */
-static char *
-make_qualname(mod,ident)
- char *mod, *ident;
-{
- char *new = malloc(strlen(mod)+strlen(ident)+2);
-
- strcpy(new,mod);
- strcat(new,".");
- strcat(new,ident);
- return new;
-}
-#endif /* 0 */
-
void
-yyerror (msg)
+yyerror (char *msg)
char *msg;
{
if (prev_lexptr)