From 9f995b41e72b25c0c7ffe8e2568e166d86f27bcc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Oct 2009 09:31:37 +0200 Subject: Add --{hxx,ixx,cxx}-suffix options --- cli/generator.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'cli/generator.cxx') diff --git a/cli/generator.cxx b/cli/generator.cxx index 6c766e4..f7a9a1f 100644 --- a/cli/generator.cxx +++ b/cli/generator.cxx @@ -77,16 +77,12 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) { bool inl (!ops.suppress_inline ()); - string hxx_suffix (".hxx"); - string ixx_suffix (".ixx"); - string cxx_suffix (".cxx"); - path file (p.leaf ()); string base (file.base ().string ()); - string hxx_name (base + hxx_suffix); - string ixx_name (base + ixx_suffix); - string cxx_name (base + cxx_suffix); + string hxx_name (base + ops.hxx_suffix ()); + string ixx_name (base + ops.ixx_suffix ()); + string cxx_name (base + ops.cxx_suffix ()); path hxx_path (hxx_name); path ixx_path (ixx_name); -- cgit v1.1