diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-07-08 14:55:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-07-24 13:53:25 +0200 |
commit | 83bb02cada0b894d9134cc5489999e0f0fe8bd7c (patch) | |
tree | 1dedff27ce2b7d54bd6b0875c9125f4dafde2e80 /libbuild2/config | |
parent | 1ba934bb973c234b68751ee5866365c14da4e795 (diff) |
Move in build system module to separate library
Diffstat (limited to 'libbuild2/config')
-rw-r--r-- | libbuild2/config/init.cxx | 14 | ||||
-rw-r--r-- | libbuild2/config/init.hxx | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx index 73275c6..b790569 100644 --- a/libbuild2/config/init.cxx +++ b/libbuild2/config/init.cxx @@ -145,15 +145,21 @@ namespace build2 return true; } - module_functions + static const module_functions mod_functions[] = + { + {"config", &boot, &init}, + {nullptr, nullptr, nullptr} + }; + + const module_functions* build2_config_load () { // Initialize the config entry points in the build system core. // - config_save_variable = &config::save_variable; - config_preprocess_create = &config::preprocess_create; + config_save_variable = &save_variable; + config_preprocess_create = &preprocess_create; - return module_functions {&boot, &init}; + return mod_functions; } } } diff --git a/libbuild2/config/init.hxx b/libbuild2/config/init.hxx index ff5e923..f900801 100644 --- a/libbuild2/config/init.hxx +++ b/libbuild2/config/init.hxx @@ -28,7 +28,7 @@ namespace build2 bool, const variable_map&); - extern "C" LIBBUILD2_SYMEXPORT module_functions + extern "C" LIBBUILD2_SYMEXPORT const module_functions* build2_config_load (); } } |