diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-20 07:04:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-20 07:04:17 +0200 |
commit | f15dcbcb90c92e0ce4c9ff575349b60713fe1f83 (patch) | |
tree | e90adb4e0b581ab7adcc6554f1efd9de381b4684 /cli/context.hxx | |
parent | ebfe8dc9d7093e932f91a649636e2202630cc16f (diff) |
Add definition unit to context
Diffstat (limited to 'cli/context.hxx')
-rw-r--r-- | cli/context.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/context.hxx b/cli/context.hxx index c3caa73..4d88fe9 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -28,6 +28,7 @@ private: public: std::ostream& os; + semantics::cli_unit& unit; typedef std::map<string, string> reserved_name_map_type; reserved_name_map_type& reserved_name_map; @@ -45,8 +46,10 @@ public: escape (string const&) const; public: - context (std::ostream& os_); - context (context& c); + context (std::ostream&, + semantics::cli_unit&); + + context (context&); private: context& @@ -57,10 +60,7 @@ private: // struct namespace_: traversal::namespace_, context { - namespace_ (context& c) - : context (c) - { - } + namespace_ (context& c) : context (c) {} virtual void pre (type&); |