diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2012-01-16 21:03:36 +0000 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2012-01-16 21:03:36 +0000 |
commit | d04550a6d725119a01c38046a7afd3a7bfddef5a (patch) | |
tree | 67929956a1ab28c35fa8e9adaaed5c697fe5e8e5 /gdb/m2-exp.y | |
parent | 4aac40c83727ce9e8ec9d6968d589df0939c9827 (diff) | |
download | gdb-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/m2-exp.y')
-rw-r--r-- | gdb/m2-exp.y | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index ef9ec8e..af6c400 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) |