diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-27 15:27:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-27 15:27:14 +0200 |
commit | 34cc74df52ed129bffeb7b6fcf11f05c222550ba (patch) | |
tree | c4e3a48a03cf507ee4a4219a8b3d57c4dce17a8c /build2/dist/module.cxx | |
parent | 5f924ea1926fe17acf699a43713b7f5881e9d30d (diff) |
Get rid of extern "C" in module boot()/init()
We will have a separate (extern "C") register() function that will return
the pointers to these two. This way we can still throw exceptions from
boot() and init().
Diffstat (limited to 'build2/dist/module.cxx')
-rw-r--r-- | build2/dist/module.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/build2/dist/module.cxx b/build2/dist/module.cxx index 58bfc6f..eed9562 100644 --- a/build2/dist/module.cxx +++ b/build2/dist/module.cxx @@ -22,8 +22,8 @@ namespace build2 { static rule rule_; - extern "C" void - dist_boot (scope& r, const location&, unique_ptr<module_base>&) + void + boot (scope& r, const location&, unique_ptr<module_base>&) { tracer trace ("dist::boot"); @@ -54,14 +54,14 @@ namespace build2 } } - extern "C" bool - dist_init (scope& r, - scope&, - const location& l, - unique_ptr<module_base>&, - bool first, - bool, - const variable_map& config_hints) + bool + init (scope& r, + scope&, + const location& l, + unique_ptr<module_base>&, + bool first, + bool, + const variable_map& config_hints) { tracer trace ("dist::init"); |