From 1484d74c1dfd24cfe5b6f13f76d58ff395e4d253 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 10 Jan 2023 16:00:36 +0100 Subject: Put ctor.h contents in ctor namespace. --- src/rebuild.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/rebuild.cc') diff --git a/src/rebuild.cc b/src/rebuild.cc index 7155984..c40a18c 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -17,9 +17,12 @@ #include "tools.h" #include "util.h" +using namespace ctor; + std::array configFiles; std::size_t numConfigFiles{0}; +namespace ctor { int reg(BuildConfigurations (*cb)(const Settings&), const std::source_location location) { @@ -47,6 +50,7 @@ int reg(BuildConfigurations (*cb)(const Settings&), return 0; } +} // namespace ctor:: int reg(const char* location) { @@ -109,6 +113,7 @@ int unreg(const char* location) std::array externalConfigFiles; std::size_t numExternalConfigFiles{0}; +namespace ctor { int reg(ExternalConfigurations (*cb)(const Settings&), const std::source_location location) { @@ -126,6 +131,7 @@ int reg(ExternalConfigurations (*cb)(const Settings&), return 0; } +} // namespace ctor:: namespace { -- cgit v1.2.3