diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-23 16:51:07 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-23 20:27:40 +0900 |
commit | ffc52c3c5bed9d696d0296c1674d2e75460bef40 (patch) | |
tree | 7364bea9749e3de9fcf308b9c4b825e7425b881a /rule.h | |
parent | 9042b995db7f0b9499e0c3087269505e5e817a58 (diff) | |
download | kati-ffc52c3c5bed9d696d0296c1674d2e75460bef40.tar.gz |
[C++] Let target specific variable have its own scope
Diffstat (limited to 'rule.h')
-rw-r--r-- | rule.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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_ |