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/objc-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/objc-exp.y')
-rw-r--r-- | gdb/objc-exp.y | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y index b43ba66..68b2a97 100644 --- a/gdb/objc-exp.y +++ b/gdb/objc-exp.y @@ -992,11 +992,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 @@ -1419,9 +1415,6 @@ yylex (void) case '^': case '~': case '!': -#if 0 - case '@': /* Moved out below. */ -#endif case '<': case '>': case '[': @@ -1783,8 +1776,7 @@ yylex (void) } void -yyerror (msg) - char *msg; +yyerror (char *msg) { if (*lexptr == '\0') error(_("A %s near end of expression."), (msg ? msg : "error")); |