Skip to content

Commit

Permalink
Merge pull request #4779
Browse files Browse the repository at this point in the history
093303a add missing header end comments (Philip Kaufmann)
  • Loading branch information
laanwj committed Sep 1, 2014
2 parents 1079226 + 093303a commit f6a8105
Show file tree
Hide file tree
Showing 41 changed files with 47 additions and 45 deletions.
4 changes: 2 additions & 2 deletions src/addrman.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOIN_ADDRMAN
#define _BITCOIN_ADDRMAN 1
#define _BITCOIN_ADDRMAN

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

#endif
#endif // _BITCOIN_ADDRMAN
4 changes: 2 additions & 2 deletions src/alert.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOINALERT_H_
#define _BITCOINALERT_H_ 1
#define _BITCOINALERT_H_

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

#endif
#endif // _BITCOINALERT_H_
2 changes: 1 addition & 1 deletion src/allocators.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ struct zero_after_free_allocator : public std::allocator<T>
// This is exactly like std::string, but with a custom allocator.
typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;

#endif
#endif // BITCOIN_ALLOCATORS_H
1 change: 0 additions & 1 deletion src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,4 +619,3 @@ int main(int argc, char* argv[])
}
return ret;
}

2 changes: 1 addition & 1 deletion src/bloom.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ class CBloomFilter
void UpdateEmptyFull();
};

#endif /* BITCOIN_BLOOM_H */
#endif // BITCOIN_BLOOM_H
2 changes: 1 addition & 1 deletion src/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ void SelectParams(CBaseChainParams::Network network);
*/
bool SelectParamsFromCommandLine();

#endif
#endif // BITCOIN_CHAIN_PARAMS_H
2 changes: 1 addition & 1 deletion src/chainparamsbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ bool SelectBaseParamsFromCommandLine();
*/
bool AreBaseParamsConfigured();

#endif
#endif // BITCOIN_CHAIN_PARAMS_BASE_H
2 changes: 1 addition & 1 deletion src/checkpoints.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ namespace Checkpoints {

} //namespace Checkpoints

#endif
#endif // BITCOIN_CHECKPOINT_H
2 changes: 1 addition & 1 deletion src/checkqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ template<typename T> class CCheckQueueControl {
}
};

#endif
#endif // CHECKQUEUE_H
3 changes: 2 additions & 1 deletion src/coins.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_COINS_H
#define BITCOIN_COINS_H

Expand Down Expand Up @@ -379,4 +380,4 @@ class CCoinsViewCache : public CCoinsViewBacked
CCoinsMap::const_iterator FetchCoins(const uint256 &txid) const;
};

#endif
#endif // BITCOIN_COINS_H
2 changes: 1 addition & 1 deletion src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,4 @@ struct CBlockLocator
}
};

#endif
#endif // BITCOIN_CORE_H
1 change: 0 additions & 1 deletion src/core_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,3 @@ vector<unsigned char> ParseHexUV(const UniValue& v, const string& strName)
throw runtime_error(strName+" must be hexadecimal string (not '"+strHex+"')");
return ParseHex(strHex);
}

1 change: 0 additions & 1 deletion src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,3 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry)
if (hashBlock != 0)
entry.pushKV("blockhash", hashBlock.GetHex());
}

2 changes: 1 addition & 1 deletion src/crypter.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ class CCryptoKeyStore : public CBasicKeyStore
boost::signals2::signal<void (CCryptoKeyStore* wallet)> NotifyStatusChanged;
};

#endif
#endif // __CRYPTER_H__
2 changes: 1 addition & 1 deletion src/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ uint256 SerializeHash(const T& obj, int nType=SER_GETHASH, int nVersion=PROTOCOL

unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash);

#endif
#endif // BITCOIN_HASH_H
2 changes: 1 addition & 1 deletion src/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ std::string HelpMessage(HelpMessageMode mode);
/** Returns licensing information (for -version) */
std::string LicenseInfo();

#endif
#endif // BITCOIN_INIT_H
2 changes: 1 addition & 1 deletion src/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,4 @@ struct CExtKey {
/** Check that required EC support is available at runtime */
bool ECC_InitSanityCheck(void);

#endif
#endif // BITCOIN_KEY_H
2 changes: 1 addition & 1 deletion src/keystore.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ class CBasicKeyStore : public CKeyStore
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial;
typedef std::map<CKeyID, std::pair<CPubKey, std::vector<unsigned char> > > CryptedKeyMap;

#endif
#endif // BITCOIN_KEYSTORE_H
2 changes: 1 addition & 1 deletion src/limitedmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ template <typename K, typename V> class limitedmap
}
};

#endif
#endif // BITCOIN_LIMITEDMAP_H
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -996,4 +996,4 @@ class CWalletInterface {
friend void ::UnregisterAllWallets();
};

#endif
#endif // BITCOIN_MAIN_H
2 changes: 1 addition & 1 deletion src/mruset.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ template <typename T> class mruset
}
};

#endif
#endif // BITCOIN_MRUSET_H
2 changes: 1 addition & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,4 +615,4 @@ class CAddrDB
bool Read(CAddrMan& addr);
};

#endif
#endif // BITCOIN_NET_H
2 changes: 1 addition & 1 deletion src/netbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ bool CloseSocket(SOCKET& hSocket);
/** Disable or enable blocking-mode for a socket */
bool SetSocketNonBlocking(SOCKET& hSocket, bool fNonBlocking);

#endif
#endif // BITCOIN_NETBASE_H
2 changes: 1 addition & 1 deletion src/noui.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

extern void noui_connect();

#endif
#endif // BITCOIN_NOUI_H
3 changes: 1 addition & 2 deletions src/pow.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
Expand All @@ -24,4 +23,4 @@ void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev);

uint256 GetProofIncrement(unsigned int nBits);

#endif
#endif // BITCOIN_POW_H
4 changes: 2 additions & 2 deletions src/rpcclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOINRPC_CLIENT_H_
#define _BITCOINRPC_CLIENT_H_ 1
#define _BITCOINRPC_CLIENT_H_

#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_utils.h"
#include "json/json_spirit_writer_template.h"

json_spirit::Array RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams);

#endif
#endif // _BITCOINRPC_CLIENT_H_
4 changes: 2 additions & 2 deletions src/rpcprotocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOINRPC_PROTOCOL_H_
#define _BITCOINRPC_PROTOCOL_H_ 1
#define _BITCOINRPC_PROTOCOL_H_

#include <list>
#include <map>
Expand Down Expand Up @@ -159,4 +159,4 @@ json_spirit::Object JSONRPCReplyObj(const json_spirit::Value& result, const json
std::string JSONRPCReply(const json_spirit::Value& result, const json_spirit::Value& error, const json_spirit::Value& id);
json_spirit::Object JSONRPCError(int code, const std::string& message);

#endif
#endif // _BITCOINRPC_PROTOCOL_H_
4 changes: 2 additions & 2 deletions src/rpcserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOINRPC_SERVER_H_
#define _BITCOINRPC_SERVER_H_ 1
#define _BITCOINRPC_SERVER_H_

#include "uint256.h"
#include "rpcprotocol.h"
Expand Down Expand Up @@ -209,4 +209,4 @@ extern json_spirit::Value gettxout(const json_spirit::Array& params, bool fHelp)
extern json_spirit::Value verifychain(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getchaintips(const json_spirit::Array& params, bool fHelp);

#endif
#endif // _BITCOINRPC_SERVER_H_
2 changes: 1 addition & 1 deletion src/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -833,4 +833,4 @@ bool VerifyScript(const CScript& scriptSig, const CScript& scriptPubKey, const C
// combine them intelligently and return the result.
CScript CombineSignatures(CScript scriptPubKey, const CTransaction& txTo, unsigned int nIn, const CScript& scriptSig1, const CScript& scriptSig2);

#endif
#endif // H_BITCOIN_SCRIPT
2 changes: 1 addition & 1 deletion src/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -1405,4 +1405,4 @@ class CBufferedFile
}
};

#endif
#endif // BITCOIN_SERIALIZE_H
2 changes: 1 addition & 1 deletion src/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,5 @@ class CSemaphoreGrant
return fHaveGrant;
}
};
#endif

#endif // BITCOIN_SYNC_H
1 change: 1 addition & 0 deletions src/threadsafety.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@
#define SHARED_LOCKS_REQUIRED(...)
#define NO_THREAD_SAFETY_ANALYSIS
#endif // __GNUC__

#endif // BITCOIN_THREADSAFETY_H
2 changes: 1 addition & 1 deletion src/timedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ int64_t GetTimeOffset();
int64_t GetAdjustedTime();
void AddTimeData(const CNetAddr& ip, int64_t nTime);

#endif
#endif // BITCOIN_TIMEDATA_H
3 changes: 2 additions & 1 deletion src/txmempool.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_TXMEMPOOL_H
#define BITCOIN_TXMEMPOOL_H

Expand Down Expand Up @@ -147,4 +148,4 @@ class CCoinsViewMemPool : public CCoinsViewBacked
bool HaveCoins(const uint256 &txid) const;
};

#endif /* BITCOIN_TXMEMPOOL_H */
#endif // BITCOIN_TXMEMPOOL_H
2 changes: 1 addition & 1 deletion src/ui_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ inline std::string _(const char* psz)
return rv ? (*rv) : psz;
}

#endif
#endif // BITCOIN_UI_INTERFACE_H
2 changes: 1 addition & 1 deletion src/uint256.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,4 @@ class uint256 : public base_uint<256> {
uint64_t GetHash(const uint256& salt) const;
};

#endif
#endif // BITCOIN_UINT256_H
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ template <typename Callable> void TraceThread(const char* name, Callable func)
}
}

#endif
#endif // BITCOIN_UTIL_H
2 changes: 1 addition & 1 deletion src/utiltime.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ void MilliSleep(int64_t n);

std::string DateTimeStrFormat(const char* pszFormat, int64_t nTime);

#endif
#endif // BITCOIN_UTILTIME_H
3 changes: 2 additions & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_VERSION_H
#define BITCOIN_VERSION_H

Expand Down Expand Up @@ -52,4 +53,4 @@ static const int MEMPOOL_GD_VERSION = 60002;
std::string FormatFullVersion();
std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);

#endif
#endif // BITCOIN_VERSION_H
3 changes: 2 additions & 1 deletion src/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_WALLET_H
#define BITCOIN_WALLET_H

Expand Down Expand Up @@ -1013,4 +1014,4 @@ class CAccountingEntry
std::vector<char> _ssExtra;
};

#endif
#endif // BITCOIN_WALLET_H
1 change: 1 addition & 0 deletions src/walletdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_WALLETDB_H
#define BITCOIN_WALLETDB_H

Expand Down

0 comments on commit f6a8105

Please sign in to comment.