summaryrefslogtreecommitdiff
path: root/cli/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/context.cxx')
-rw-r--r--cli/context.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/context.cxx b/cli/context.cxx
index 96eec1c..cd03386 100644
--- a/cli/context.cxx
+++ b/cli/context.cxx
@@ -10,9 +10,11 @@
using namespace std;
context::
-context (std::ostream& os_)
+context (std::ostream& os_,
+ semantics::cli_unit& unit_)
: data_ (new (shared) data),
os (os_),
+ unit (unit_),
reserved_name_map (data_->reserved_name_map_)
{
}
@@ -21,6 +23,7 @@ context::
context (context& c)
: data_ (c.data_),
os (c.os),
+ unit (c.unit),
reserved_name_map (c.reserved_name_map)
{
}