* c-exp.y, m2-exp.y: Lint.
authorJohn Gilmore <gnu@cygnus>
Thu, 19 Sep 1991 22:16:40 +0000 (22:16 +0000)
committerJohn Gilmore <gnu@cygnus>
Thu, 19 Sep 1991 22:16:40 +0000 (22:16 +0000)
* m2-exp.y:  Avoid using yytname[] which is a Bison-ism.

gdb/c-exp.y
gdb/m2-exp.y

index 5e2e4b7e75ecb619fc4dd45625fd872306b578a8..c7cf672c8a087d77640cd7ea9788c387c28ece50 100644 (file)
@@ -56,8 +56,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define        yyact   c_act           
 #define        yyexca  c_exca
 
+/* Forward decls */
 void yyerror ();
 static int parse_number ();
+int yyparse ();
 
 /* #define     YYDEBUG 1 */
 
index 070f7ab02692b1ef6f457c4fbf0a39c652db2d06..5beefe6c8b142cf73efd2ac523272061eab92fc6 100644 (file)
@@ -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");
 }
 \f
 /* Table of operators and their precedences for printing expressions.  */
This page took 0.027345 seconds and 4 git commands to generate.