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/rebuild.cc | |
parent | f31661d392c1332ceb0edcbc9fd35f4cb49bb50d (diff) |
Put ctor.h contents in ctor namespace.
Diffstat (limited to 'src/rebuild.cc')
-rw-r--r-- | src/rebuild.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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<BuildConfigurationEntry, 1024> 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<ExternalConfigurationEntry, 1024> 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 { |