aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-exp.y
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-19 22:16:40 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-19 22:16:40 +0000
commitf24adda313333714038bec83180443ffb4726786 (patch)
tree1d510ee684e41469eb0cdd20eefeb8b096f11405 /gdb/m2-exp.y
parentcd93283c870b23902419e17276485bcfeb571c8c (diff)
downloadgdb-f24adda313333714038bec83180443ffb4726786.zip
gdb-f24adda313333714038bec83180443ffb4726786.tar.gz
gdb-f24adda313333714038bec83180443ffb4726786.tar.bz2
* c-exp.y, m2-exp.y: Lint.
* m2-exp.y: Avoid using yytname[] which is a Bison-ism.
Diffstat (limited to 'gdb/m2-exp.y')
-rw-r--r--gdb/m2-exp.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y
index 070f7ab..5beefe6 100644
--- a/gdb/m2-exp.y
+++ b/gdb/m2-exp.y
@@ -56,8 +56,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define yyact m2_act
#define yyexca m2_exca
+/* Forward decl's */
void yyerror ();
static int yylex ();
+int yyparse ();
/* The sign of the number being parsed. */
int number_sign = 1;
@@ -1122,8 +1124,7 @@ yyerror()
if (yychar < 256)
error("Invalid syntax in expression near character '%c'.",yychar);
else
- error("Invalid syntax in expression near a '%s'.",
- yytname[yychar-255]);
+ error("Invalid syntax in expression");
}
/* Table of operators and their precedences for printing expressions. */