Skip to content

Commit

Permalink
Fix all header defines
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanik committed Nov 3, 2014
1 parent c969096 commit 8473862
Show file tree
Hide file tree
Showing 89 changed files with 269 additions and 270 deletions.
6 changes: 3 additions & 3 deletions share/seeds/generate-seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def main():
exit(1)
g = sys.stdout
indir = sys.argv[1]
g.write('#ifndef H_CHAINPARAMSSEEDS\n')
g.write('#define H_CHAINPARAMSSEEDS\n')
g.write('#ifndef BITCOIN_CHAINPARAMSSEEDS_H\n')
g.write('#define BITCOIN_CHAINPARAMSSEEDS_H\n')
g.write('/**\n')
g.write(' * List of fixed seed nodes for the bitcoin network\n')
g.write(' * AUTOGENERATED by share/seeds/generate-seeds.py\n')
Expand All @@ -128,7 +128,7 @@ def main():
g.write('\n')
with open(os.path.join(indir,'nodes_test.txt'),'r') as f:
process_nodes(g, f, 'pnSeed6_test', 18333)
g.write('#endif\n')
g.write('#endif // BITCOIN_CHAINPARAMSSEEDS_H\n')

if __name__ == '__main__':
main()
Expand Down
6 changes: 3 additions & 3 deletions src/addrman.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOIN_ADDRMAN
#define _BITCOIN_ADDRMAN
#ifndef BITCOIN_ADDRMAN_H
#define BITCOIN_ADDRMAN_H

#include "netbase.h"
#include "protocol.h"
Expand Down Expand Up @@ -514,4 +514,4 @@ class CAddrMan
}
};

#endif // _BITCOIN_ADDRMAN
#endif // BITCOIN_ADDRMAN_H
6 changes: 3 additions & 3 deletions src/alert.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOINALERT_H_
#define _BITCOINALERT_H_
#ifndef BITCOIN_ALERT_H
#define BITCOIN_ALERT_H

#include "serialize.h"
#include "sync.h"
Expand Down Expand Up @@ -110,4 +110,4 @@ class CAlert : public CUnsignedAlert
static CAlert getAlertByHash(const uint256 &hash);
};

#endif // _BITCOINALERT_H_
#endif // BITCOIN_ALERT_H
6 changes: 3 additions & 3 deletions src/chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef H_BITCOIN_CHAIN
#define H_BITCOIN_CHAIN
#ifndef BITCOIN_CHAIN_H
#define BITCOIN_CHAIN_H

#include "core/block.h"
#include "pow.h"
Expand Down Expand Up @@ -409,4 +409,4 @@ class CChain {
const CBlockIndex *FindFork(const CBlockIndex *pindex) const;
};

#endif // H_BITCOIN_CHAIN
#endif // BITCOIN_CHAIN_H
6 changes: 3 additions & 3 deletions src/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_CHAIN_PARAMS_H
#define BITCOIN_CHAIN_PARAMS_H
#ifndef BITCOIN_CHAINPARAMS_H
#define BITCOIN_CHAINPARAMS_H

#include "chainparamsbase.h"
#include "checkpoints.h"
Expand Down Expand Up @@ -151,4 +151,4 @@ void SelectParams(CBaseChainParams::Network network);
*/
bool SelectParamsFromCommandLine();

#endif // BITCOIN_CHAIN_PARAMS_H
#endif // BITCOIN_CHAINPARAMS_H
6 changes: 3 additions & 3 deletions src/chainparamsbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_CHAIN_PARAMS_BASE_H
#define BITCOIN_CHAIN_PARAMS_BASE_H
#ifndef BITCOIN_CHAINPARAMSBASE_H
#define BITCOIN_CHAINPARAMSBASE_H

#include <string>
#include <vector>
Expand Down Expand Up @@ -62,4 +62,4 @@ bool SelectBaseParamsFromCommandLine();
*/
bool AreBaseParamsConfigured();

#endif // BITCOIN_CHAIN_PARAMS_BASE_H
#endif // BITCOIN_CHAINPARAMSBASE_H
11 changes: 5 additions & 6 deletions src/chainparamsseeds.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#ifndef H_CHAINPARAMSSEEDS
#define H_CHAINPARAMSSEEDS

#ifndef BITCOIN_CHAINPARAMSSEEDS_H
#define BITCOIN_CHAINPARAMSSEEDS_H
/**
* List of fixed seed nodes for the bitcoin network
* AUTOGENERATED by contrib/devtools/generate-seeds.py
*
* AUTOGENERATED by share/seeds/generate-seeds.py
*
* Each line contains a 16-byte IPv6 address and a port.
* IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly.
*/
Expand Down Expand Up @@ -638,4 +637,4 @@ static SeedSpec6 pnSeed6_test[] = {
{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0x99,0xcb,0x26,0x31,0xba,0x48,0x51,0x31,0x39,0x0d}, 18333},
{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0x44,0xf4,0xf4,0xf0,0xbf,0xf7,0x7e,0x6d,0xc4,0xe8}, 18333}
};
#endif
#endif // BITCOIN_CHAINPARAMSSEEDS_H
6 changes: 3 additions & 3 deletions src/checkpoints.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_CHECKPOINT_H
#define BITCOIN_CHECKPOINT_H
#ifndef BITCOIN_CHECKPOINTS_H
#define BITCOIN_CHECKPOINTS_H

#include "uint256.h"

Expand Down Expand Up @@ -40,4 +40,4 @@ extern bool fEnabled;

} //namespace Checkpoints

#endif // BITCOIN_CHECKPOINT_H
#endif // BITCOIN_CHECKPOINTS_H
6 changes: 3 additions & 3 deletions src/checkqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef CHECKQUEUE_H
#define CHECKQUEUE_H
#ifndef BITCOIN_CHECKQUEUE_H
#define BITCOIN_CHECKQUEUE_H

#include <algorithm>
#include <vector>
Expand Down Expand Up @@ -204,4 +204,4 @@ class CCheckQueueControl
}
};

#endif // CHECKQUEUE_H
#endif // BITCOIN_CHECKQUEUE_H
6 changes: 3 additions & 3 deletions src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
#ifndef BITCOIN_CLIENTVERSION_H
#define BITCOIN_CLIENTVERSION_H

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

#endif // WINDRES_PREPROC

#endif // CLIENTVERSION_H
#endif // BITCOIN_CLIENTVERSION_H
6 changes: 3 additions & 3 deletions src/coincontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef COINCONTROL_H
#define COINCONTROL_H
#ifndef BITCOIN_COINCONTROL_H
#define BITCOIN_COINCONTROL_H

#include "core/transaction.h"

Expand Down Expand Up @@ -59,4 +59,4 @@ class CCoinControl
std::set<COutPoint> setSelected;
};

#endif // COINCONTROL_H
#endif // BITCOIN_COINCONTROL_H
6 changes: 3 additions & 3 deletions src/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOIN_COMPAT_H
#define _BITCOIN_COMPAT_H
#ifndef BITCOIN_COMPAT_H
#define BITCOIN_COMPAT_H

#ifdef WIN32
#ifdef _WIN32_WINNT
Expand Down Expand Up @@ -84,4 +84,4 @@ typedef u_int SOCKET;
#define THREAD_PRIORITY_ABOVE_NORMAL (-2)
#endif

#endif // _BITCOIN_COMPAT_H
#endif // BITCOIN_COMPAT_H
6 changes: 3 additions & 3 deletions src/compat/sanity.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCON_COMPAT_SANITY_H
#define BITCON_COMPAT_SANITY_H
#ifndef BITCOIN_COMPAT_SANITY_H
#define BITCOIN_COMPAT_SANITY_H

bool glibc_sanity_test();
bool glibcxx_sanity_test();

#endif // BITCON_COMPAT_SANITY_H
#endif // BITCOIN_COMPAT_SANITY_H
6 changes: 3 additions & 3 deletions src/compressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef H_BITCOIN_COMPRESSOR
#define H_BITCOIN_COMPRESSOR
#ifndef BITCOIN_COMPRESSOR_H
#define BITCOIN_COMPRESSOR_H

#include "core/transaction.h"
#include "script/script.h"
Expand Down Expand Up @@ -116,4 +116,4 @@ class CTxOutCompressor
}
};

#endif // H_BITCOIN_COMPRESSOR
#endif // BITCOIN_COMPRESSOR_H
6 changes: 3 additions & 3 deletions src/core/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef H_BITCOIN_CORE_BLOCK
#define H_BITCOIN_CORE_BLOCK
#ifndef BITCOIN_CORE_BLOCK_H
#define BITCOIN_CORE_BLOCK_H

#include "core/transaction.h"
#include "serialize.h"
Expand Down Expand Up @@ -165,4 +165,4 @@ struct CBlockLocator
}
};

#endif // H_BITCOIN_CORE_BLOCK
#endif // BITCOIN_CORE_BLOCK_H
6 changes: 3 additions & 3 deletions src/core/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef H_BITCOIN_CORE_TRANSACTION
#define H_BITCOIN_CORE_TRANSACTION
#ifndef BITCOIN_CORE_TRANSACTION_H
#define BITCOIN_CORE_TRANSACTION_H

#include "amount.h"
#include "script/script.h"
Expand Down Expand Up @@ -273,4 +273,4 @@ struct CMutableTransaction
uint256 GetHash() const;
};

#endif // H_BITCOIN_CORE_TRANSACTION
#endif // BITCOIN_CORE_TRANSACTION_H
6 changes: 3 additions & 3 deletions src/core_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef __BITCOIN_CORE_IO_H__
#define __BITCOIN_CORE_IO_H__
#ifndef BITCOIN_CORE_IO_H
#define BITCOIN_CORE_IO_H

#include <string>
#include <vector>
Expand All @@ -26,4 +26,4 @@ extern void ScriptPubKeyToUniv(const CScript& scriptPubKey,
UniValue& out, bool fIncludeHex);
extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);

#endif // __BITCOIN_CORE_IO_H__
#endif // BITCOIN_CORE_IO_H
6 changes: 3 additions & 3 deletions src/crypter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef __CRYPTER_H__
#define __CRYPTER_H__
#ifndef BITCOIN_CRYPTER_H
#define BITCOIN_CRYPTER_H

#include "allocators.h"
#include "serialize.h"
Expand Down Expand Up @@ -195,4 +195,4 @@ class CCryptoKeyStore : public CBasicKeyStore
boost::signals2::signal<void (CCryptoKeyStore* wallet)> NotifyStatusChanged;
};

#endif // __CRYPTER_H__
#endif // BITCOIN_CRYPTER_H
6 changes: 3 additions & 3 deletions src/crypto/ripemd160.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_RIPEMD160_H
#define BITCOIN_RIPEMD160_H
#ifndef BITCOIN_CRYPTO_RIPEMD160_H
#define BITCOIN_CRYPTO_RIPEMD160_H

#include <stdint.h>
#include <stdlib.h>
Expand All @@ -25,4 +25,4 @@ class CRIPEMD160
CRIPEMD160& Reset();
};

#endif // BITCOIN_RIPEMD160_H
#endif // BITCOIN_CRYPTO_RIPEMD160_H
6 changes: 3 additions & 3 deletions src/crypto/sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_SHA1_H
#define BITCOIN_SHA1_H
#ifndef BITCOIN_CRYPTO_SHA1_H
#define BITCOIN_CRYPTO_SHA1_H

#include <stdint.h>
#include <stdlib.h>
Expand All @@ -25,4 +25,4 @@ class CSHA1
CSHA1& Reset();
};

#endif // BITCOIN_SHA1_H
#endif // BITCOIN_CRYPTO_SHA1_H
6 changes: 3 additions & 3 deletions src/crypto/sha2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_SHA2_H
#define BITCOIN_SHA2_H
#ifndef BITCOIN_CRYPTO_SHA2_H
#define BITCOIN_CRYPTO_SHA2_H

#include <stdint.h>
#include <stdlib.h>
Expand Down Expand Up @@ -61,4 +61,4 @@ class CHMAC_SHA512
void Finalize(unsigned char hash[OUTPUT_SIZE]);
};

#endif // BITCOIN_SHA2_H
#endif // BITCOIN_CRYPTO_SHA2_H
4 changes: 2 additions & 2 deletions src/ecwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_EC_WRAPPER_H
#define BITCOIN_EC_WRAPPER_H
#ifndef BITCOIN_ECWRAPPER_H
#define BITCOIN_ECWRAPPER_H

#include <cstddef>
#include <vector>
Expand Down
6 changes: 3 additions & 3 deletions src/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#error This header can only be compiled as C++.
#endif

#ifndef __INCLUDED_PROTOCOL_H__
#define __INCLUDED_PROTOCOL_H__
#ifndef BITCOIN_PROTOCOL_H
#define BITCOIN_PROTOCOL_H

#include "netbase.h"
#include "serialize.h"
Expand Down Expand Up @@ -149,4 +149,4 @@ enum {
MSG_FILTERED_BLOCK,
};

#endif // __INCLUDED_PROTOCOL_H__
#endif // BITCOIN_PROTOCOL_H
Loading

0 comments on commit 8473862

Please sign in to comment.