From f15dcbcb90c92e0ce4c9ff575349b60713fe1f83 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 20 Sep 2009 07:04:17 +0200 Subject: Add definition unit to context --- cli/context.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/context.hxx') 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 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&); -- cgit v1.1