From 6a9a911f05bbd0d2a63a06512733a4a6ff5b3e65 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Oct 2009 13:58:20 +0200 Subject: Add --option-{prefix,separator} options --- cli/context.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/context.cxx') diff --git a/cli/context.cxx b/cli/context.cxx index b82a318..3f3261c 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -16,10 +16,12 @@ context (ostream& os_, semantics::cli_unit& unit_, options_type const& ops) unit (unit_), options (ops), inl (data_->inl_), + opt_prefix (options.option_prefix ()), + opt_sep (options.option_separator ()), reserved_name_map (options.reserved_name ()) { if (!options.suppress_inline ()) - inl = "inline "; + data_->inl_ = "inline "; } context:: @@ -29,6 +31,8 @@ context (context& c) unit (c.unit), options (c.options), inl (c.inl), + opt_prefix (c.opt_prefix), + opt_sep (c.opt_sep), reserved_name_map (c.reserved_name_map) { } -- cgit v1.1