diff options
author | Evan Martin <martine@danga.com> | 2011-12-30 04:37:07 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-30 23:15:47 (GMT) |
commit | 5cb21f16506808468f5c9c387b9c9f413dfe9b08 (patch) | |
tree | 8d2021d327940511c8df758b57140df0565d2cf5 /src/eval_env.h | |
parent | b87ecb00c9f90d5b80fd51c546b8caabb83801ed (diff) | |
download | Ninja-5cb21f16506808468f5c9c387b9c9f413dfe9b08.zip Ninja-5cb21f16506808468f5c9c387b9c9f413dfe9b08.tar.gz Ninja-5cb21f16506808468f5c9c387b9c9f413dfe9b08.tar.bz2 |
make evalstring internals private
Diffstat (limited to 'src/eval_env.h')
-rw-r--r-- | src/eval_env.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval_env.h b/src/eval_env.h index 8c144f0..2341bcb 100644 --- a/src/eval_env.h +++ b/src/eval_env.h @@ -48,13 +48,15 @@ struct EvalString { void Clear() { parsed_.clear(); } bool empty() const { return parsed_.empty(); } - enum TokenType { RAW, SPECIAL }; - void Add(TokenType type, StringPiece text); + void AddText(StringPiece text); + void AddSpecial(StringPiece text); /// Construct a human-readable representation of the parsed state, /// for use in tests. string Serialize() const; +private: + enum TokenType { RAW, SPECIAL }; typedef vector<pair<string, TokenType> > TokenList; TokenList parsed_; }; |