Skip to content

Commit 4764f5d

Browse files
committed
Merge pull request #6892
214de7e [Trivial] ensure minimal header conventions (Philip Kaufmann)
2 parents e06c14f + 214de7e commit 4764f5d

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

src/bench/bench.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Copyright (c) 2015 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
45
#include "bench.h"
6+
57
#include <iostream>
68
#include <sys/time.h>
79

src/bench/bench.h

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
// Copyright (c) 2015 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4-
#ifndef BITCOIN_BENCH_H
5-
#define BITCOIN_BENCH_H
4+
5+
#ifndef BITCOIN_BENCH_BENCH_H
6+
#define BITCOIN_BENCH_BENCH_H
7+
8+
#include <map>
9+
#include <string>
10+
11+
#include <boost/function.hpp>
12+
#include <boost/preprocessor/cat.hpp>
13+
#include <boost/preprocessor/stringize.hpp>
614

715
// Simple micro-benchmarking framework; API mostly matches a subset of the Google Benchmark
816
// framework (see https://github.com/google/benchmark)
@@ -25,14 +33,7 @@ static void CODE_TO_TIME(benchmark::State& state)
2533
BENCHMARK(CODE_TO_TIME);
2634
2735
*/
28-
29-
30-
#include <boost/function.hpp>
31-
#include <boost/preprocessor/cat.hpp>
32-
#include <boost/preprocessor/stringize.hpp>
33-
#include <map>
34-
#include <string>
35-
36+
3637
namespace benchmark {
3738

3839
class State {
@@ -68,4 +69,4 @@ namespace benchmark {
6869
#define BENCHMARK(n) \
6970
benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n);
7071

71-
#endif // BITCOIN_BENCH_H
72+
#endif // BITCOIN_BENCH_BENCH_H

src/memusage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ static inline size_t DynamicUsage(const boost::unordered_map<X, Y, Z>& m)
121121

122122
}
123123

124-
#endif
124+
#endif // BITCOIN_MEMUSAGE_H

src/policy/policy.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#ifndef BITCOIN_POLICY_H
7-
#define BITCOIN_POLICY_H
6+
#ifndef BITCOIN_POLICY_POLICY_H
7+
#define BITCOIN_POLICY_POLICY_H
88

99
#include "consensus/consensus.h"
1010
#include "script/interpreter.h"
@@ -59,4 +59,4 @@ bool IsStandardTx(const CTransaction& tx, std::string& reason);
5959
*/
6060
bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs);
6161

62-
#endif // BITCOIN_POLICY_H
62+
#endif // BITCOIN_POLICY_POLICY_H

0 commit comments

Comments
 (0)