]> www.ginac.de Git - ginac.git/commitdiff
Made yyerror() string argument constant to avoid an compile error with
authorJens Vollinga <jens.vollinga@googlemail.com>
Tue, 21 Jun 2011 19:36:16 +0000 (21:36 +0200)
committerJens Vollinga <jens.vollinga@googlemail.com>
Tue, 21 Jun 2011 19:36:16 +0000 (21:36 +0200)
gcc 4.6.

ginsh/ginsh.h
ginsh/ginsh_parser.yy

index fdf9e08b064317a2ff784c4c8578295e774a2a40..92a53b45cfc376db329ad7a47f51f2d148a572a4 100644 (file)
@@ -56,7 +56,7 @@ using namespace GiNaC;
 #define YYSTYPE ex
 
 // lex functions/variables
-extern int yyerror(char *s);
+extern int yyerror(const char *s);
 extern int yylex(void);
 extern char *yytext;
 extern FILE *yyin;
index 5fc18857b96de1c292e4dd129a2021001454229b..ab300a42fec18879d2036154550ff52e82c5c81f 100644 (file)
@@ -304,7 +304,7 @@ row : exp                   {$$ = lst($1);}
 
 %%
 // Error print routine
-int yyerror(char *s)
+int yyerror(const char *s)
 {
        cerr << s << " at " << yytext << endl;
        return 0;