diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-04 09:31:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-04 09:31:37 +0200 |
commit | 9f995b41e72b25c0c7ffe8e2568e166d86f27bcc (patch) | |
tree | 06a8854080742ca256c3dc4d90b4c910864bf8d4 /cli/generator.cxx | |
parent | beab8baab8a7f727f5ba65ecbd7e11decea18112 (diff) | |
download | cli-9f995b41e72b25c0c7ffe8e2568e166d86f27bcc.tar.gz cli-9f995b41e72b25c0c7ffe8e2568e166d86f27bcc.tar.xz cli-9f995b41e72b25c0c7ffe8e2568e166d86f27bcc.zip |
Add --{hxx,ixx,cxx}-suffix options
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r-- | cli/generator.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
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); |