diff --git a/arcanist/linter/LocaleDependenceLinter.php b/arcanist/linter/LocaleDependenceLinter.php --- a/arcanist/linter/LocaleDependenceLinter.php +++ b/arcanist/linter/LocaleDependenceLinter.php @@ -37,16 +37,16 @@ "strtol", ], "src/uint256.cpp" => ["tolower"], - "src/util.cpp" => ["atoi", "tolower"], - "src/utilmoneystr.cpp" => ["isdigit"], - "src/utilstrencodings.cpp" => [ + "src/util/system.cpp" => ["atoi", "tolower"], + "src/util/moneystr.cpp" => ["isdigit"], + "src/util/strencodings.cpp" => [ "atoi", "strtol", "strtoll", "strtoul", "strtoull", ], - "src/utilstrencodings.h" => ["atoi"], + "src/util/strencodings.h" => ["atoi"], ); const LOCALE_DEPENDENT_FUNCTIONS = array( diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -200,10 +200,10 @@ sync.cpp threadinterrupt.cpp uint256.cpp - util.cpp - utilmoneystr.cpp - utilstrencodings.cpp - utiltime.cpp + util/system.cpp + util/moneystr.cpp + util/strencodings.cpp + util/time.cpp util/bytevectorhash.cpp ) @@ -333,7 +333,7 @@ script/script_error.cpp script/sigencoding.cpp uint256.cpp - utilstrencodings.cpp + util/strencodings.cpp ) target_link_libraries(bitcoinconsensus common) diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am @@ -205,9 +205,9 @@ txmempool.h \ ui_interface.h \ undo.h \ - util.h \ - utilmoneystr.h \ - utiltime.h \ + util/system.h \ + util/moneystr.h \ + util/time.h \ util/bitmanip.h \ util/bytevectorhash.h \ validation.h \ @@ -407,8 +407,8 @@ tinyformat.h \ uint256.cpp \ uint256.h \ - utilstrencodings.cpp \ - utilstrencodings.h \ + util/strencodings.cpp \ + util/strencodings.h \ version.h # common: shared between bitcoind, and bitcoin-qt and non-server tools @@ -463,10 +463,10 @@ threadinterrupt.cpp \ uint256.cpp \ uint256.h \ - util.cpp \ - utilmoneystr.cpp \ - utilstrencodings.cpp \ - utiltime.cpp \ + util/system.cpp \ + util/moneystr.cpp \ + util/strencodings.cpp \ + util/time.cpp \ util/bytevectorhash.cpp \ $(BITCOIN_CORE_H) diff --git a/src/addrdb.cpp b/src/addrdb.cpp --- a/src/addrdb.cpp +++ b/src/addrdb.cpp @@ -13,7 +13,7 @@ #include #include #include -#include +#include namespace { diff --git a/src/addrman.h b/src/addrman.h --- a/src/addrman.h +++ b/src/addrman.h @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/arith_uint256.cpp b/src/arith_uint256.cpp --- a/src/arith_uint256.cpp +++ b/src/arith_uint256.cpp @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include diff --git a/src/base58.cpp b/src/base58.cpp --- a/src/base58.cpp +++ b/src/base58.cpp @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp --- a/src/bench/bench_bitcoin.cpp +++ b/src/bench/bench_bitcoin.cpp @@ -7,8 +7,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/src/bench/checkqueue.cpp b/src/bench/checkqueue.cpp --- a/src/bench/checkqueue.cpp +++ b/src/bench/checkqueue.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/bench/crypto_aes.cpp b/src/bench/crypto_aes.cpp --- a/src/bench/crypto_aes.cpp +++ b/src/bench/crypto_aes.cpp @@ -4,7 +4,7 @@ #include #include -#include +#include #include #define BENCH_AES128_ITERATION 800000 diff --git a/src/bench/crypto_hash.cpp b/src/bench/crypto_hash.cpp --- a/src/bench/crypto_hash.cpp +++ b/src/bench/crypto_hash.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include /* Number of bytes to hash per iteration */ static const uint64_t BUFFER_SIZE = 1000 * 1000; diff --git a/src/bench/examples.cpp b/src/bench/examples.cpp --- a/src/bench/examples.cpp +++ b/src/bench/examples.cpp @@ -3,7 +3,7 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#include +#include #include // Sanity test: this should loop ten times, and diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -13,8 +13,8 @@ #include #include #include -#include -#include +#include +#include #include #include diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -17,9 +17,9 @@ #include #include