/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
77c2acd
)
Made yyerror() string argument constant to avoid an compile error with
Jens Vollinga [Tue, 21 Jun 2011 19:36:16 +0000 (21:36 +0200)]
gcc 4.6.
ginsh/ginsh.h
patch
|
blob
|
history
ginsh/ginsh_parser.yy
patch
|
blob
|
history
diff --git
a/ginsh/ginsh.h
b/ginsh/ginsh.h
index
fdf9e08
..
92a53b4
100644
(file)
--- a/
ginsh/ginsh.h
+++ b/
ginsh/ginsh.h
@@
-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;
diff --git
a/ginsh/ginsh_parser.yy
b/ginsh/ginsh_parser.yy
index
5fc1885
..
ab300a4
100644
(file)
--- a/
ginsh/ginsh_parser.yy
+++ b/
ginsh/ginsh_parser.yy
@@
-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;