diff options
Diffstat (limited to 'bbot/utility.hxx')
-rw-r--r-- | bbot/utility.hxx | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/bbot/utility.hxx b/bbot/utility.hxx index b93f8b6..7758db4 100644 --- a/bbot/utility.hxx +++ b/bbot/utility.hxx @@ -1,22 +1,23 @@ // file : bbot/utility.hxx -*- C++ -*- -// license : TBC; see accompanying LICENSE file +// license : MIT; see accompanying LICENSE file #ifndef BBOT_UTILITY_HXX #define BBOT_UTILITY_HXX -#include <memory> // make_shared() -#include <string> // to_string(), stoull() -#include <utility> // move(), forward(), declval(), make_pair() -#include <cassert> // assert() -#include <iterator> // make_move_iterator() +#include <memory> // make_shared() +#include <string> // to_string(), stoull() +#include <utility> // move(), forward(), declval(), make_pair() +#include <cassert> // assert() +#include <iterator> // make_move_iterator() +#include <algorithm> // * #include <libbutl/ft/lang.hxx> -#include <libbutl/curl.mxx> -#include <libbutl/process.mxx> -#include <libbutl/process-io.mxx> -#include <libbutl/utility.mxx> // icasecmp(), reverse_iterate(), etc -#include <libbutl/filesystem.mxx> +#include <libbutl/curl.hxx> +#include <libbutl/process.hxx> +#include <libbutl/process-io.hxx> +#include <libbutl/utility.hxx> // icasecmp(), reverse_iterate(), etc +#include <libbutl/filesystem.hxx> #include <bbot/types.hxx> #include <bbot/version.hxx> @@ -33,9 +34,10 @@ namespace bbot using std::to_string; using std::stoull; - // <libbutl/utility.mxx> + // <libbutl/utility.hxx> // using butl::icasecmp; + using butl::sanitize_identifier; using butl::reverse_iterate; using butl::make_guard; @@ -45,7 +47,7 @@ namespace bbot using butl::setenv; using butl::unsetenv; - // <libbutl/filesystem.mxx> + // <libbutl/filesystem.hxx> // using butl::auto_rmdir; using butl::auto_rmfile; @@ -147,7 +149,10 @@ namespace bbot template <typename T> void - serialize_manifest (const T&, const path&, const char* what); + serialize_manifest (const T&, + const path&, + const char* what, + bool long_lines = false); template <typename T> void @@ -155,7 +160,8 @@ namespace bbot ostream&, const string& name, const char* what, - bool fail_hard = true); + bool fail_hard = true, + bool long_lines = false); } #include <bbot/utility.txx> |