aboutsummaryrefslogtreecommitdiff
path: root/build2/module
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-25 15:41:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:39:24 +0200
commit88f0780e34116c0441a8d8c58b8a8fd9fde4b1f5 (patch)
tree1240b36211772479dc1220712e0daed4e35ecd85 /build2/module
parent61aa8e2b4bd7849838c04dc1f421c4760d88319f (diff)
Add model mutex, make var_pool const by default
Diffstat (limited to 'build2/module')
-rw-r--r--build2/module10
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/module b/build2/module
index 7d6439f..7c4672f 100644
--- a/build2/module
+++ b/build2/module
@@ -26,7 +26,9 @@ namespace build2
};
using module_boot_function =
- void (scope& root, const location&, unique_ptr<module_base>&);
+ void (scope& root,
+ const location&,
+ unique_ptr<module_base>&);
// Return false if the module configuration (normally based on the default
// values) was unsuccessful but this is not (yet) an error. One example
@@ -82,7 +84,7 @@ namespace build2
// Load and boot the specified module.
//
void
- boot_module (const string& name, scope& root, const location&);
+ boot_module (scope& root, const string& name, const location&);
// Load (if not already loaded) and initialize the specified module. Used
// by the parser but also by some modules to load prerequisite modules.
@@ -96,9 +98,9 @@ namespace build2
// its tools).
//
bool
- load_module (const string& name,
- scope& root,
+ load_module (scope& root,
scope& base,
+ const string& name,
const location&,
bool optional = false,
const variable_map& config_hints = variable_map ());