aboutsummaryrefslogtreecommitdiff
path: root/build2/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-12 16:39:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-12 17:04:22 +0200
commit53eb43126e562a43f4e8f2247af10da5c4c3c87f (patch)
treeeddd4c1162c8ee59b85db17f3e39aceb28dd8c0d /build2/config
parent83b5af87efef571b707fc1f409f22571a9f5054c (diff)
Rename module to init
Diffstat (limited to 'build2/config')
-rw-r--r--build2/config/init31
-rw-r--r--build2/config/init.cxx (renamed from build2/config/module.cxx)5
-rw-r--r--build2/config/module14
3 files changed, 35 insertions, 15 deletions
diff --git a/build2/config/init b/build2/config/init
new file mode 100644
index 0000000..7efae99
--- /dev/null
+++ b/build2/config/init
@@ -0,0 +1,31 @@
+// file : build2/config/init -*- C++ -*-
+// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BUILD2_CONFIG_INIT
+#define BUILD2_CONFIG_INIT
+
+#include <build2/types>
+#include <build2/utility>
+
+#include <build2/module>
+
+namespace build2
+{
+ namespace config
+ {
+ void
+ boot (scope&, const location&, unique_ptr<module_base>&);
+
+ bool
+ init (scope&,
+ scope&,
+ const location&,
+ unique_ptr<module_base>&,
+ bool,
+ bool,
+ const variable_map&);
+ }
+}
+
+#endif // BUILD2_CONFIG_INIT
diff --git a/build2/config/module.cxx b/build2/config/init.cxx
index de106b7..6c713df 100644
--- a/build2/config/module.cxx
+++ b/build2/config/init.cxx
@@ -1,8 +1,8 @@
-// file : build2/config/module.cxx -*- C++ -*-
+// file : build2/config/init.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#include <build2/config/module>
+#include <build2/config/init>
#include <build2/file>
#include <build2/rule>
@@ -11,6 +11,7 @@
#include <build2/filesystem> // file_exists()
#include <build2/diagnostics>
+#include <build2/config/module>
#include <build2/config/utility>
#include <build2/config/operation>
diff --git a/build2/config/module b/build2/config/module
index 21a7e28..e6fb197 100644
--- a/build2/config/module
+++ b/build2/config/module
@@ -78,20 +78,8 @@ namespace build2
struct module: module_base
{
config::saved_modules saved_modules;
- static const string name;
+ static const string name; // init.cxx
};
-
- void
- boot (scope&, const location&, unique_ptr<module_base>&);
-
- bool
- init (scope&,
- scope&,
- const location&,
- unique_ptr<module_base>&,
- bool,
- bool,
- const variable_map&);
}
}