summaryrefslogtreecommitdiffstats
path: root/src/eval_env.h
diff options
context:
space:
mode:
authorAlexei Svitkine <asvitkine@google.com>2011-04-26 18:49:49 (GMT)
committerEvan Martin <martine@danga.com>2011-04-26 18:49:49 (GMT)
commit2f6ac73dad3806e771761af3a58d43d434337a4b (patch)
treede9266a1e7a635f66299a2847c6c66d894ad6637 /src/eval_env.h
parent5c192cda0788faeed93b3ba03a6830ed43762b24 (diff)
downloadNinja-2f6ac73dad3806e771761af3a58d43d434337a4b.zip
Ninja-2f6ac73dad3806e771761af3a58d43d434337a4b.tar.gz
Ninja-2f6ac73dad3806e771761af3a58d43d434337a4b.tar.bz2
include location of error in parse error messages in EvalEnv strings
E.g. when parsing "foo = ${bar", point at the correct location of the missing curly brace.
Diffstat (limited to 'src/eval_env.h')
-rw-r--r--src/eval_env.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval_env.h b/src/eval_env.h
index fd0e4eb..f0108ae 100644
--- a/src/eval_env.h
+++ b/src/eval_env.h
@@ -39,7 +39,7 @@ struct BindingEnv : public Env {
// A tokenized string that contains variable references.
// Can be evaluated relative to an Env.
struct EvalString {
- bool Parse(const string& input, string* err);
+ bool Parse(const string& input, string* err, size_t* err_index=NULL);
string Evaluate(Env* env) const;
const string& unparsed() const { return unparsed_; }