diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-10 16:00:36 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:13:24 +0100 |
commit | 1484d74c1dfd24cfe5b6f13f76d58ff395e4d253 (patch) | |
tree | 2f71f2aa6d6dd29eda51924f985de7f9caee78c0 /src/bootstrap.cc | |
parent | f31661d392c1332ceb0edcbc9fd35f4cb49bb50d (diff) |
Put ctor.h contents in ctor namespace.
Diffstat (limited to 'src/bootstrap.cc')
-rw-r--r-- | src/bootstrap.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bootstrap.cc b/src/bootstrap.cc index d473689..3a73cc6 100644 --- a/src/bootstrap.cc +++ b/src/bootstrap.cc @@ -22,8 +22,9 @@ std::filesystem::path configurationFile("configuration.cc"); std::filesystem::path configHeaderFile("config.h"); -const Configuration default_configuration{}; -const Configuration& configuration() +namespace ctor { +const ctor::Configuration default_configuration{}; +const ctor::Configuration& configuration() { return default_configuration; } @@ -50,6 +51,7 @@ const std::string& getConfiguration(const std::string& key, return defaultValue; } +} // namespace ctor:: int main(int argc, char* argv[]) { @@ -60,9 +62,9 @@ int main(int argc, char* argv[]) return 1; } - Settings settings{}; + ctor::Settings settings{}; - settings.builddir = getConfiguration(cfg::builddir, settings.builddir); + settings.builddir = ctor::getConfiguration(cfg::builddir, settings.builddir); settings.parallel_processes = std::max(1u, std::thread::hardware_concurrency() * 2 - 1); settings.verbose = 0; |