Skip to content

Commit df504e9

Browse files
committed
Merge pull request #5196
8473862 Fix all header defines (Pavel Janík)
2 parents 73b82a3 + 8473862 commit df504e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+269
-270
lines changed

share/seeds/generate-seeds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def main():
114114
exit(1)
115115
g = sys.stdout
116116
indir = sys.argv[1]
117-
g.write('#ifndef H_CHAINPARAMSSEEDS\n')
118-
g.write('#define H_CHAINPARAMSSEEDS\n')
117+
g.write('#ifndef BITCOIN_CHAINPARAMSSEEDS_H\n')
118+
g.write('#define BITCOIN_CHAINPARAMSSEEDS_H\n')
119119
g.write('/**\n')
120120
g.write(' * List of fixed seed nodes for the bitcoin network\n')
121121
g.write(' * AUTOGENERATED by share/seeds/generate-seeds.py\n')
@@ -128,7 +128,7 @@ def main():
128128
g.write('\n')
129129
with open(os.path.join(indir,'nodes_test.txt'),'r') as f:
130130
process_nodes(g, f, 'pnSeed6_test', 18333)
131-
g.write('#endif\n')
131+
g.write('#endif // BITCOIN_CHAINPARAMSSEEDS_H\n')
132132

133133
if __name__ == '__main__':
134134
main()

src/addrman.h

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

5-
#ifndef _BITCOIN_ADDRMAN
6-
#define _BITCOIN_ADDRMAN
5+
#ifndef BITCOIN_ADDRMAN_H
6+
#define BITCOIN_ADDRMAN_H
77

88
#include "netbase.h"
99
#include "protocol.h"
@@ -514,4 +514,4 @@ class CAddrMan
514514
}
515515
};
516516

517-
#endif // _BITCOIN_ADDRMAN
517+
#endif // BITCOIN_ADDRMAN_H

src/alert.h

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

6-
#ifndef _BITCOINALERT_H_
7-
#define _BITCOINALERT_H_
6+
#ifndef BITCOIN_ALERT_H
7+
#define BITCOIN_ALERT_H
88

99
#include "serialize.h"
1010
#include "sync.h"
@@ -110,4 +110,4 @@ class CAlert : public CUnsignedAlert
110110
static CAlert getAlertByHash(const uint256 &hash);
111111
};
112112

113-
#endif // _BITCOINALERT_H_
113+
#endif // BITCOIN_ALERT_H

src/chain.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 H_BITCOIN_CHAIN
7-
#define H_BITCOIN_CHAIN
6+
#ifndef BITCOIN_CHAIN_H
7+
#define BITCOIN_CHAIN_H
88

99
#include "core/block.h"
1010
#include "pow.h"
@@ -409,4 +409,4 @@ class CChain {
409409
const CBlockIndex *FindFork(const CBlockIndex *pindex) const;
410410
};
411411

412-
#endif // H_BITCOIN_CHAIN
412+
#endif // BITCOIN_CHAIN_H

src/chainparams.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_CHAIN_PARAMS_H
7-
#define BITCOIN_CHAIN_PARAMS_H
6+
#ifndef BITCOIN_CHAINPARAMS_H
7+
#define BITCOIN_CHAINPARAMS_H
88

99
#include "chainparamsbase.h"
1010
#include "checkpoints.h"
@@ -151,4 +151,4 @@ void SelectParams(CBaseChainParams::Network network);
151151
*/
152152
bool SelectParamsFromCommandLine();
153153

154-
#endif // BITCOIN_CHAIN_PARAMS_H
154+
#endif // BITCOIN_CHAINPARAMS_H

src/chainparamsbase.h

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

5-
#ifndef BITCOIN_CHAIN_PARAMS_BASE_H
6-
#define BITCOIN_CHAIN_PARAMS_BASE_H
5+
#ifndef BITCOIN_CHAINPARAMSBASE_H
6+
#define BITCOIN_CHAINPARAMSBASE_H
77

88
#include <string>
99
#include <vector>
@@ -62,4 +62,4 @@ bool SelectBaseParamsFromCommandLine();
6262
*/
6363
bool AreBaseParamsConfigured();
6464

65-
#endif // BITCOIN_CHAIN_PARAMS_BASE_H
65+
#endif // BITCOIN_CHAINPARAMSBASE_H

src/chainparamsseeds.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
#ifndef H_CHAINPARAMSSEEDS
2-
#define H_CHAINPARAMSSEEDS
3-
1+
#ifndef BITCOIN_CHAINPARAMSSEEDS_H
2+
#define BITCOIN_CHAINPARAMSSEEDS_H
43
/**
54
* List of fixed seed nodes for the bitcoin network
6-
* AUTOGENERATED by contrib/devtools/generate-seeds.py
7-
*
5+
* AUTOGENERATED by share/seeds/generate-seeds.py
6+
*
87
* Each line contains a 16-byte IPv6 address and a port.
98
* IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly.
109
*/
@@ -638,4 +637,4 @@ static SeedSpec6 pnSeed6_test[] = {
638637
{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0x99,0xcb,0x26,0x31,0xba,0x48,0x51,0x31,0x39,0x0d}, 18333},
639638
{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0x44,0xf4,0xf4,0xf0,0xbf,0xf7,0x7e,0x6d,0xc4,0xe8}, 18333}
640639
};
641-
#endif
640+
#endif // BITCOIN_CHAINPARAMSSEEDS_H

src/checkpoints.h

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

5-
#ifndef BITCOIN_CHECKPOINT_H
6-
#define BITCOIN_CHECKPOINT_H
5+
#ifndef BITCOIN_CHECKPOINTS_H
6+
#define BITCOIN_CHECKPOINTS_H
77

88
#include "uint256.h"
99

@@ -40,4 +40,4 @@ extern bool fEnabled;
4040

4141
} //namespace Checkpoints
4242

43-
#endif // BITCOIN_CHECKPOINT_H
43+
#endif // BITCOIN_CHECKPOINTS_H

src/checkqueue.h

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

5-
#ifndef CHECKQUEUE_H
6-
#define CHECKQUEUE_H
5+
#ifndef BITCOIN_CHECKQUEUE_H
6+
#define BITCOIN_CHECKQUEUE_H
77

88
#include <algorithm>
99
#include <vector>
@@ -204,4 +204,4 @@ class CCheckQueueControl
204204
}
205205
};
206206

207-
#endif // CHECKQUEUE_H
207+
#endif // BITCOIN_CHECKQUEUE_H

src/clientversion.h

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

5-
#ifndef CLIENTVERSION_H
6-
#define CLIENTVERSION_H
5+
#ifndef BITCOIN_CLIENTVERSION_H
6+
#define BITCOIN_CLIENTVERSION_H
77

88
#if defined(HAVE_CONFIG_H)
99
#include "config/bitcoin-config.h"
@@ -67,4 +67,4 @@ std::string FormatSubVersion(const std::string& name, int nClientVersion, const
6767

6868
#endif // WINDRES_PREPROC
6969

70-
#endif // CLIENTVERSION_H
70+
#endif // BITCOIN_CLIENTVERSION_H

0 commit comments

Comments
 (0)