aboutsummaryrefslogtreecommitdiff
path: root/eval.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-07-03 16:51:46 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-07-03 17:21:51 +0900
commit388e85886bb13ceeb91cbeb6d94cc9ab83f30f53 (patch)
tree717c5a0d79020827bbd887425b459296a0763a14 /eval.cc
parenta90adb03eebc68961c1c9ff34b0e2acb49e27502 (diff)
[C++] Remove STRING_PIECE macro
Diffstat (limited to 'eval.cc')
-rw-r--r--eval.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.cc b/eval.cc
index a93d307..29a9954 100644
--- a/eval.cc
+++ b/eval.cc
@@ -145,9 +145,9 @@ void Evaluator::EvalRule(const RuleAST* ast) {
// TODO: We always insert two whitespaces around the
// terminator. Preserve whitespaces properly.
if (ast->term == ';') {
- rhs = NewExpr3(lit, NewLiteral(STRING_PIECE(" ; ")), rhs);
+ rhs = NewExpr3(lit, NewLiteral(StringPiece(" ; ")), rhs);
} else {
- rhs = NewExpr3(lit, NewLiteral(STRING_PIECE(" = ")), rhs);
+ rhs = NewExpr3(lit, NewLiteral(StringPiece(" = ")), rhs);
}
} else {
rhs = lit;
@@ -156,7 +156,7 @@ void Evaluator::EvalRule(const RuleAST* ast) {
current_scope_ = p.first->second;
Symbol lhs = Intern(rule_var.lhs);
- Var* rhs_var = EvalRHS(lhs, rhs, STRING_PIECE("*TODO*"), rule_var.op);
+ Var* rhs_var = EvalRHS(lhs, rhs, StringPiece("*TODO*"), rule_var.op);
if (rhs_var)
current_scope_->Assign(lhs, new RuleVar(rhs_var, rule_var.op));
current_scope_ = NULL;