aboutsummaryrefslogtreecommitdiff
path: root/rule.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-23 16:51:07 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-23 20:27:40 +0900
commitffc52c3c5bed9d696d0296c1674d2e75460bef40 (patch)
tree7364bea9749e3de9fcf308b9c4b825e7425b881a /rule.h
parent9042b995db7f0b9499e0c3087269505e5e817a58 (diff)
downloadkati-ffc52c3c5bed9d696d0296c1674d2e75460bef40.tar.gz
[C++] Let target specific variable have its own scope
Diffstat (limited to 'rule.h')
-rw-r--r--rule.h7
1 files changed, 3 insertions, 4 deletions
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<StringPiece> 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_