From bf3b6fe73a414edb5fbb1da29baa7e882dd982a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 27 Sep 2009 18:18:57 +0200 Subject: Add inline qualifier string --- cli/context.cxx | 6 ++++++ cli/context.hxx | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/cli/context.cxx b/cli/context.cxx index cd03386..bc7ff0f 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -15,8 +15,13 @@ context (std::ostream& os_, : data_ (new (shared) data), os (os_), unit (unit_), + inl (data_->inl_), reserved_name_map (data_->reserved_name_map_) { + //@@ --generate-inline + // + if (false) + inl = "inline "; } context:: @@ -24,6 +29,7 @@ context (context& c) : data_ (c.data_), os (c.os), unit (c.unit), + inl (c.inl), reserved_name_map (c.reserved_name_map) { } diff --git a/cli/context.hxx b/cli/context.hxx index eb2e412..ae490c9 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -32,12 +32,16 @@ public: std::ostream& os; semantics::cli_unit& unit; + string& inl; + typedef std::map reserved_name_map_type; reserved_name_map_type& reserved_name_map; private: struct data { + string inl_; + reserved_name_map_type reserved_name_map_; }; -- cgit v1.1