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.cxx | |
parent | ebfe8dc9d7093e932f91a649636e2202630cc16f (diff) |
Add definition unit to context
Diffstat (limited to 'cli/context.cxx')
-rw-r--r-- | cli/context.cxx | 5 |
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) { } |