diff options
Diffstat (limited to 'rule.h')
| -rw-r--r-- | rule.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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_ |
