]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_parser.yy
Made yyerror() string argument constant to avoid an compile error with
[ginac.git] / ginsh / ginsh_parser.yy
index 9783bf8cdb129711cf7b17c86925e025701ca292..ab300a42fec18879d2036154550ff52e82c5c81f 100644 (file)
@@ -4,7 +4,7 @@
  *  This file must be processed with yacc/bison. */
 
 /*
- *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -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;
@@ -899,7 +899,7 @@ static void ginsh_readline_init(char* name)
 void greeting(void)
 {
     cout << "ginsh - GiNaC Interactive Shell (" << PACKAGE << " V" << VERSION << ")" << endl;
-    cout << "  __,  _______  Copyright (C) 1999-2010 Johannes Gutenberg University Mainz,\n"
+    cout << "  __,  _______  Copyright (C) 1999-2011 Johannes Gutenberg University Mainz,\n"
          << " (__) *       | Germany.  This is free software with ABSOLUTELY NO WARRANTY.\n"
          << "  ._) i N a C | You are welcome to redistribute it under certain conditions.\n"
          << "<-------------' For details type `warranty;'.\n" << endl;