Poincare: Expression parsing shouldn't modify the string

Change-Id: I29bd1a81fa0b88b7151e3a79a47d287e9775b357
This commit is contained in:
Romain Goyet
2016-03-24 13:09:54 +01:00
parent fe3667639f
commit 6edb36cef3
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class Expression {
Subtraction,
Symbol
};
static Expression * parse(char * string);
static Expression * parse(char const * string);
virtual ~Expression();
//virtual Expression ** children() = 0; // NULL-terminated

View File

@@ -14,7 +14,7 @@ int poincare_expression_yyparse(yyscan_t scanner, Expression ** expressionOutput
Expression::~Expression() {
}
Expression * Expression::parse(char * string) {
Expression * Expression::parse(char const * string) {
void * scanner;
poincare_expression_yylex_init(&scanner);
YY_BUFFER_STATE buf = poincare_expression_yy_scan_string(string, scanner);