summaryrefslogtreecommitdiff
path: root/src/module.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-12-01 03:18:44 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-11 21:54:49 (GMT)
commit40d9ffe6a4c26eef22a6804329c736e081447a0a (patch)
treec3db921c93d0e5f26f35522ce09ede3773e7ffae /src/module.h
parentadb16cb7ddb4cfae5d6eb4027778f92d282b4493 (diff)
Changed redeclaration of assignment so that the last declaration defines the order. This hopefully fixes the confusing error message discussed on the mailing list nov 27-30 (Variable bug)
Diffstat (limited to 'src/module.h')
-rw-r--r--src/module.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/module.h b/src/module.h
index 879d249..cc82f81 100644
--- a/src/module.h
+++ b/src/module.h
@@ -74,8 +74,9 @@ public:
bool is_handling_dependencies;
bool handleDependencies();
- std::vector<std::string> assignments_var;
- std::vector<Expression*> assignments_expr;
+ std::list<std::string> assignments_var;
+ typedef boost::unordered_map<std::string, Expression*> AssignmentContainer;
+ AssignmentContainer assignments;
typedef boost::unordered_map<std::string, class AbstractFunction*> FunctionContainer;
FunctionContainer functions;
contact: Jan Huwald // Impressum