diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 09:59:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 10:00:35 +0200 |
commit | 83d5e6063f670134303a3396219f63eaac0aedff (patch) | |
tree | 1bf57f618f491e2cd2ac1479bace603864fc31d0 | |
parent | 88bedd3896e383e550203e0056fd3b19dd2cef66 (diff) |
Change function names to make VC happy
-rw-r--r-- | build2/cc/install.cxx | 2 | ||||
-rw-r--r-- | build2/install/rule | 8 | ||||
-rw-r--r-- | build2/install/rule.cxx | 32 |
3 files changed, 21 insertions, 21 deletions
diff --git a/build2/cc/install.cxx b/build2/cc/install.cxx index a69cc52..48054bf 100644 --- a/build2/cc/install.cxx +++ b/build2/cc/install.cxx @@ -108,7 +108,7 @@ namespace build2 auto rm = [&id, this] (const path& l) { - return uninstall (id, nullptr, l.leaf (), false); + return uninstall_f (id, nullptr, l.leaf (), false); }; const path& lk (lp.link); diff --git a/build2/install/rule b/build2/install/rule index 56cd8f9..4ad91bb 100644 --- a/build2/install/rule +++ b/build2/install/rule @@ -79,10 +79,10 @@ namespace build2 // exist). // static bool - uninstall (const install_dir& base, - file* t, - const path& name, - bool verbose); + uninstall_f (const install_dir& base, + file* t, + const path& name, + bool verbose); private: target_state diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx index 6753a23..dcb6686 100644 --- a/build2/install/rule.cxx +++ b/build2/install/rule.cxx @@ -376,7 +376,7 @@ namespace build2 // or higher. // static void - install (const install_dir& base, const dir_path& d, bool verbose = true) + install_d (const install_dir& base, const dir_path& d, bool verbose = true) { try { @@ -397,7 +397,7 @@ namespace build2 dir_path pd (d.directory ()); if (pd != base.dir) - install (base, pd, verbose); + install_d (base, pd, verbose); } cstrings args; @@ -451,10 +451,10 @@ namespace build2 // or higher. // static void - install (const install_dir& base, - const path& name, - file& t, - bool verbose = true) + install_f (const install_dir& base, + const path& name, + file& t, + bool verbose) { path relf (relative (t.path ())); @@ -572,7 +572,7 @@ namespace build2 // sudo, etc). // for (auto i (ids.begin ()), j (i); i != ids.end (); j = i++) - install (*j, i->dir, verbose); // install -d + install_d (*j, i->dir, verbose); // install -d install_dir& id (ids.back ()); @@ -583,7 +583,7 @@ namespace build2 // Install the target and extras. // - install (id, n ? p.leaf () : path (), t, verbose); + install_f (id, n ? p.leaf () : path (), t, verbose); install_extra (t, id); }; @@ -617,7 +617,7 @@ namespace build2 // or higher. // static bool - uninstall (const install_dir& base, const dir_path& d, bool verbose = true) + uninstall_d (const install_dir& base, const dir_path& d, bool verbose) { // Figure out if we should try to remove this directory. Note that if // it doesn't exist, then we may still need to remove outer ones. @@ -700,17 +700,17 @@ namespace build2 dir_path pd (d.directory ()); if (pd != base.dir) - r = uninstall (base, pd, verbose) || r; + r = uninstall_d (base, pd, verbose) || r; } return r; } bool file_rule:: - uninstall (const install_dir& base, - file* t, - const path& name, - bool verbose) + uninstall_f (const install_dir& base, + file* t, + const path& name, + bool verbose) { assert (t != nullptr || !name.empty ()); path f (base.dir / (name.empty () ? t->path ().leaf () : name)); @@ -810,7 +810,7 @@ namespace build2 ? target_state::changed : target_state::unchanged); - if (uninstall (id, &t, n ? p.leaf () : path (), verbose)) + if (uninstall_f (id, &t, n ? p.leaf () : path (), verbose)) r |= target_state::changed; // Clean up empty leading directories (in reverse). @@ -820,7 +820,7 @@ namespace build2 // for (auto i (ids.rbegin ()), j (i), e (ids.rend ()); i != e; j = ++i) { - if (install::uninstall (++j != e ? *j : *i, i->dir, verbose)) + if (install::uninstall_d (++j != e ? *j : *i, i->dir, verbose)) r |= target_state::changed; } |