mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-11 13:13:49 +01:00
scripted-diff: Replace #include "" with #include <> (ryanofsky)
-BEGIN VERIFY SCRIPT-
for f in \
src/*.cpp \
src/*.h \
src/bench/*.cpp \
src/bench/*.h \
src/compat/*.cpp \
src/compat/*.h \
src/consensus/*.cpp \
src/consensus/*.h \
src/crypto/*.cpp \
src/crypto/*.h \
src/crypto/ctaes/*.h \
src/policy/*.cpp \
src/policy/*.h \
src/primitives/*.cpp \
src/primitives/*.h \
src/qt/*.cpp \
src/qt/*.h \
src/qt/test/*.cpp \
src/qt/test/*.h \
src/rpc/*.cpp \
src/rpc/*.h \
src/script/*.cpp \
src/script/*.h \
src/support/*.cpp \
src/support/*.h \
src/support/allocators/*.h \
src/test/*.cpp \
src/test/*.h \
src/wallet/*.cpp \
src/wallet/*.h \
src/wallet/test/*.cpp \
src/wallet/test/*.h \
src/zmq/*.cpp \
src/zmq/*.h
do
base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f
done
-END VERIFY SCRIPT-
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "validation.h"
|
||||
#include "utiltime.h"
|
||||
#include <bench/bench.h>
|
||||
#include <validation.h>
|
||||
#include <utiltime.h>
|
||||
|
||||
// Sanity test: this should loop ten times, and
|
||||
// min/max/average should be close to 100ms.
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include <bench/bench.h>
|
||||
|
||||
#include "validation.h"
|
||||
#include "base58.h"
|
||||
#include <validation.h>
|
||||
#include <base58.h>
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "perf.h"
|
||||
#include <bench/bench.h>
|
||||
#include <bench/perf.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <iostream>
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include <bench/bench.h>
|
||||
|
||||
#include "crypto/sha256.h"
|
||||
#include "key.h"
|
||||
#include "validation.h"
|
||||
#include "util.h"
|
||||
#include "random.h"
|
||||
#include <crypto/sha256.h>
|
||||
#include <key.h>
|
||||
#include <validation.h>
|
||||
#include <util.h>
|
||||
#include <random.h>
|
||||
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "coins.h"
|
||||
#include "policy/policy.h"
|
||||
#include "wallet/crypter.h"
|
||||
#include <bench/bench.h>
|
||||
#include <coins.h>
|
||||
#include <policy/policy.h>
|
||||
#include <wallet/crypter.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include <bench/bench.h>
|
||||
|
||||
#include "chainparams.h"
|
||||
#include "validation.h"
|
||||
#include "streams.h"
|
||||
#include "consensus/validation.h"
|
||||
#include <chainparams.h>
|
||||
#include <validation.h>
|
||||
#include <streams.h>
|
||||
#include <consensus/validation.h>
|
||||
|
||||
namespace block_bench {
|
||||
#include "bench/data/block413567.raw.h"
|
||||
#include <bench/data/block413567.raw.h>
|
||||
} // namespace block_bench
|
||||
|
||||
// These are the two major time-sinks which happen after we have fully received
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "util.h"
|
||||
#include "validation.h"
|
||||
#include "checkqueue.h"
|
||||
#include "prevector.h"
|
||||
#include <bench/bench.h>
|
||||
#include <util.h>
|
||||
#include <validation.h>
|
||||
#include <checkqueue.h>
|
||||
#include <prevector.h>
|
||||
#include <vector>
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include "random.h"
|
||||
#include <random.h>
|
||||
|
||||
|
||||
// This Benchmark tests the CheckQueue with the lightest
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "wallet/wallet.h"
|
||||
#include <bench/bench.h>
|
||||
#include <wallet/wallet.h>
|
||||
|
||||
#include <set>
|
||||
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "bench.h"
|
||||
#include "bloom.h"
|
||||
#include "hash.h"
|
||||
#include "random.h"
|
||||
#include "uint256.h"
|
||||
#include "utiltime.h"
|
||||
#include "crypto/ripemd160.h"
|
||||
#include "crypto/sha1.h"
|
||||
#include "crypto/sha256.h"
|
||||
#include "crypto/sha512.h"
|
||||
#include <bench/bench.h>
|
||||
#include <bloom.h>
|
||||
#include <hash.h>
|
||||
#include <random.h>
|
||||
#include <uint256.h>
|
||||
#include <utiltime.h>
|
||||
#include <crypto/ripemd160.h>
|
||||
#include <crypto/sha1.h>
|
||||
#include <crypto/sha256.h>
|
||||
#include <crypto/sha512.h>
|
||||
|
||||
/* Number of bytes to hash per iteration */
|
||||
static const uint64_t BUFFER_SIZE = 1000*1000;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include <bench/bench.h>
|
||||
|
||||
#include "support/lockedpool.h"
|
||||
#include <support/lockedpool.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "policy/policy.h"
|
||||
#include "txmempool.h"
|
||||
#include <bench/bench.h>
|
||||
#include <policy/policy.h>
|
||||
#include <txmempool.h>
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "perf.h"
|
||||
#include <bench/perf.h>
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "prevector.h"
|
||||
#include <bench/bench.h>
|
||||
#include <prevector.h>
|
||||
|
||||
static void PrevectorDestructor(benchmark::State& state)
|
||||
{
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "bench.h"
|
||||
#include "bloom.h"
|
||||
#include <bench/bench.h>
|
||||
#include <bloom.h>
|
||||
|
||||
static void RollingBloom(benchmark::State& state)
|
||||
{
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include "bench.h"
|
||||
#include "key.h"
|
||||
#include <bench/bench.h>
|
||||
#include <key.h>
|
||||
#if defined(HAVE_CONSENSUS_LIB)
|
||||
#include "script/bitcoinconsensus.h"
|
||||
#include <script/bitcoinconsensus.h>
|
||||
#endif
|
||||
#include "script/script.h"
|
||||
#include "script/sign.h"
|
||||
#include "streams.h"
|
||||
#include <script/script.h>
|
||||
#include <script/sign.h>
|
||||
#include <streams.h>
|
||||
|
||||
#include <array>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user