aboutsummaryrefslogtreecommitdiff
path: root/rule.h
diff options
context:
space:
mode:
Diffstat (limited to 'rule.h')
-rw-r--r--rule.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rule.h b/rule.h
index 4d72bb7..48394bb 100644
--- a/rule.h
+++ b/rule.h
@@ -49,7 +49,7 @@ class Rule {
private:
void Error(const string& msg) {
- ERROR("%s:%d: %s", loc.filename, loc.lineno, msg.c_str());
+ ERROR_LOC(loc, "%s", msg.c_str());
}
};
@@ -65,7 +65,7 @@ struct RuleVarAssignment {
// |term| is '='), |after_term_fn| will be called to obtain the right
// hand side.
void ParseRule(Loc& loc, StringPiece line, char term,
- function<string()> after_term_fn,
+ const function<string()> &after_term_fn,
Rule** rule, RuleVarAssignment* rule_var);
#endif // RULE_H_