Skip to content

Commit a21df62

Browse files
Philip Kaufmannlaanwj
authored andcommitted
ensure consistent header comment naming conventions
- BITCOIN_FOLDER_SUBFOLDER_FILENAME_H
1 parent 9e16cb1 commit a21df62

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
lines changed

src/arith_uint256.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,4 @@ class arith_uint256 : public base_uint<256> {
287287
uint256 ArithToUint256(const arith_uint256 &);
288288
arith_uint256 UintToArith256(const uint256 &);
289289

290-
#endif // BITCOIN_UINT256_H
290+
#endif // BITCOIN_ARITH_UINT256_H

src/consensus/params.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_CONSENSUS_CONSENSUS_PARAMS_H
7-
#define BITCOIN_CONSENSUS_CONSENSUS_PARAMS_H
6+
#ifndef BITCOIN_CONSENSUS_PARAMS_H
7+
#define BITCOIN_CONSENSUS_PARAMS_H
88

99
#include "uint256.h"
1010

@@ -28,4 +28,4 @@ struct Params {
2828
};
2929
} // namespace Consensus
3030

31-
#endif // BITCOIN_CONSENSUS_CONSENSUS_PARAMS_H
31+
#endif // BITCOIN_CONSENSUS_PARAMS_H

src/support/allocators/secure.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_ALLOCATORS_SECURE_H
7-
#define BITCOIN_ALLOCATORS_SECURE_H
6+
#ifndef BITCOIN_SUPPORT_ALLOCATORS_SECURE_H
7+
#define BITCOIN_SUPPORT_ALLOCATORS_SECURE_H
88

99
#include "support/pagelocker.h"
1010

@@ -59,4 +59,4 @@ struct secure_allocator : public std::allocator<T> {
5959
// This is exactly like std::string, but with a custom allocator.
6060
typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;
6161

62-
#endif // BITCOIN_ALLOCATORS_SECURE_H
62+
#endif // BITCOIN_SUPPORT_ALLOCATORS_SECURE_H

src/support/allocators/zeroafterfree.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_ALLOCATORS_ZEROAFTERFREE_H
7-
#define BITCOIN_ALLOCATORS_ZEROAFTERFREE_H
6+
#ifndef BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H
7+
#define BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H
88

99
#include "support/cleanse.h"
1010

@@ -45,4 +45,4 @@ struct zero_after_free_allocator : public std::allocator<T> {
4545
// Byte-vector that clears its contents before deletion.
4646
typedef std::vector<char, zero_after_free_allocator<char> > CSerializeData;
4747

48-
#endif // BITCOIN_ALLOCATORS_ZEROAFTERFREE_H
48+
#endif // BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H

src/support/pagelocker.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_ALLOCATORS_PAGELOCKER_H
7-
#define BITCOIN_ALLOCATORS_PAGELOCKER_H
6+
#ifndef BITCOIN_SUPPORT_PAGELOCKER_H
7+
#define BITCOIN_SUPPORT_PAGELOCKER_H
88

99
#include "support/cleanse.h"
1010

@@ -175,4 +175,4 @@ void UnlockObject(const T& t)
175175
LockedPageManager::Instance().UnlockRange((void*)(&t), sizeof(T));
176176
}
177177

178-
#endif // BITCOIN_ALLOCATORS_PAGELOCKER_H
178+
#endif // BITCOIN_SUPPORT_PAGELOCKER_H

src/wallet/crypter.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_CRYPTER_H
6-
#define BITCOIN_CRYPTER_H
5+
#ifndef BITCOIN_WALLET_CRYPTER_H
6+
#define BITCOIN_WALLET_CRYPTER_H
77

88
#include "keystore.h"
99
#include "serialize.h"
@@ -193,4 +193,4 @@ class CCryptoKeyStore : public CBasicKeyStore
193193
boost::signals2::signal<void (CCryptoKeyStore* wallet)> NotifyStatusChanged;
194194
};
195195

196-
#endif // BITCOIN_CRYPTER_H
196+
#endif // BITCOIN_WALLET_CRYPTER_H

src/wallet/db.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_DB_H
7-
#define BITCOIN_DB_H
6+
#ifndef BITCOIN_WALLET_DB_H
7+
#define BITCOIN_WALLET_DB_H
88

99
#include "clientversion.h"
1010
#include "serialize.h"
@@ -307,4 +307,4 @@ class CDB
307307
bool static Rewrite(const std::string& strFile, const char* pszSkip = NULL);
308308
};
309309

310-
#endif // BITCOIN_DB_H
310+
#endif // BITCOIN_WALLET_DB_H

src/wallet/wallet.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_WALLET_H
7-
#define BITCOIN_WALLET_H
6+
#ifndef BITCOIN_WALLET_WALLET_H
7+
#define BITCOIN_WALLET_WALLET_H
88

99
#include "amount.h"
1010
#include "key.h"
@@ -869,4 +869,4 @@ class CAccountingEntry
869869
std::vector<char> _ssExtra;
870870
};
871871

872-
#endif // BITCOIN_WALLET_H
872+
#endif // BITCOIN_WALLET_WALLET_H

src/wallet/wallet_ismine.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_WALLET_ISMINE_H
7-
#define BITCOIN_WALLET_ISMINE_H
6+
#ifndef BITCOIN_WALLET_WALLET_ISMINE_H
7+
#define BITCOIN_WALLET_WALLET_ISMINE_H
88

99
#include "key.h"
1010
#include "script/standard.h"
@@ -26,4 +26,4 @@ typedef uint8_t isminefilter;
2626
isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
2727
isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
2828

29-
#endif // BITCOIN_WALLET_ISMINE_H
29+
#endif // BITCOIN_WALLET_WALLET_ISMINE_H

src/wallet/walletdb.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_WALLETDB_H
7-
#define BITCOIN_WALLETDB_H
6+
#ifndef BITCOIN_WALLET_WALLETDB_H
7+
#define BITCOIN_WALLET_WALLETDB_H
88

99
#include "amount.h"
1010
#include "wallet/db.h"
@@ -140,4 +140,4 @@ class CWalletDB : public CDB
140140
bool BackupWallet(const CWallet& wallet, const std::string& strDest);
141141
void ThreadFlushWalletDB(const std::string& strFile);
142142

143-
#endif // BITCOIN_WALLETDB_H
143+
#endif // BITCOIN_WALLET_WALLETDB_H

0 commit comments

Comments
 (0)