From ffc52c3c5bed9d696d0296c1674d2e75460bef40 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Tue, 23 Jun 2015 16:51:07 +0900 Subject: [C++] Let target specific variable have its own scope --- rule.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rule.h') diff --git a/rule.h b/rule.h index 323d96c..42dba37 100644 --- a/rule.h +++ b/rule.h @@ -24,7 +24,6 @@ using namespace std; -class Evaluator; class Value; class Rule { @@ -51,15 +50,15 @@ class Rule { } }; -struct RuleVar { +struct RuleVarAssignment { vector outputs; StringPiece lhs; StringPiece rhs; AssignOp op; }; -// If |rule| is not NULL, rule_var is filled. +// If |rule| is not NULL, |rule_var| is filled. void ParseRule(Loc& loc, StringPiece line, bool is_assign, - Rule** rule, RuleVar* rule_var); + Rule** rule, RuleVarAssignment* rule_var); #endif // RULE_H_ -- cgit v1.2.3