script: add a slew of includes all around and drop includes from script.h

Lots of files ended up with indirect includes from script.h.
This commit is contained in:
Cory Fields 2014-09-24 23:32:36 -04:00
parent db8eb54bd7
commit 85c579e3a6
18 changed files with 31 additions and 7 deletions

View file

@ -8,6 +8,7 @@
#include "core.h" #include "core.h"
#include "pow.h" #include "pow.h"
#include "tinyformat.h"
#include "uint256.h" #include "uint256.h"
#include <vector> #include <vector>

View file

@ -7,6 +7,7 @@
#include "random.h" #include "random.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include <assert.h> #include <assert.h>

View file

@ -5,7 +5,9 @@
#include "core.h" #include "core.h"
#include "hash.h"
#include "tinyformat.h" #include "tinyformat.h"
#include "utilstrencodings.h"
std::string COutPoint::ToString() const std::string COutPoint::ToString() const
{ {

View file

@ -9,6 +9,8 @@
#include "serialize.h" #include "serialize.h"
#include "univalue/univalue.h" #include "univalue/univalue.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include "version.h"
#include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/predicate.hpp>

View file

@ -12,6 +12,7 @@
#include "univalue/univalue.h" #include "univalue/univalue.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"
#include "utilstrencodings.h"
#include <boost/foreach.hpp> #include <boost/foreach.hpp>

View file

@ -20,6 +20,7 @@
#include "script/sigcache.h" #include "script/sigcache.h"
#include "script/standard.h" #include "script/standard.h"
#include "sync.h" #include "sync.h"
#include "tinyformat.h"
#include "txmempool.h" #include "txmempool.h"
#include "uint256.h" #include "uint256.h"

View file

@ -7,6 +7,7 @@
#include "chainparams.h" #include "chainparams.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#ifndef WIN32 #ifndef WIN32
# include <arpa/inet.h> # include <arpa/inet.h>

View file

@ -8,6 +8,7 @@
#include "paymentrequestdata.h" #include "paymentrequestdata.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/x509_vfy.h> #include <openssl/x509_vfy.h>

View file

@ -4,6 +4,8 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "compressor.h" #include "compressor.h"
#include "key.h"
#include "script/standard.h" #include "script/standard.h"
bool CScriptCompressor::IsToKeyID(CKeyID &hash) const bool CScriptCompressor::IsToKeyID(CKeyID &hash) const

View file

@ -7,7 +7,10 @@
#define H_BITCOIN_SCRIPT_COMPRESSOR #define H_BITCOIN_SCRIPT_COMPRESSOR
#include "script/script.h" #include "script/script.h"
#include "serialize.h"
class CKeyID;
class CPubKey;
class CScriptID; class CScriptID;
/** Compact serializer for scripts. /** Compact serializer for scripts.

View file

@ -9,6 +9,7 @@
#include "crypto/ripemd160.h" #include "crypto/ripemd160.h"
#include "crypto/sha1.h" #include "crypto/sha1.h"
#include "crypto/sha2.h" #include "crypto/sha2.h"
#include "key.h"
#include "script/script.h" #include "script/script.h"
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"

View file

@ -5,7 +5,8 @@
#include "script.h" #include "script.h"
#include <boost/foreach.hpp> #include "tinyformat.h"
#include "utilstrencodings.h"
namespace { namespace {
inline std::string ValueString(const std::vector<unsigned char>& vch) inline std::string ValueString(const std::vector<unsigned char>& vch)

View file

@ -6,13 +6,13 @@
#ifndef H_BITCOIN_SCRIPT #ifndef H_BITCOIN_SCRIPT
#define H_BITCOIN_SCRIPT #define H_BITCOIN_SCRIPT
#include "key.h" #include <assert.h>
#include "tinyformat.h" #include <climits>
#include "utilstrencodings.h" #include <limits>
#include <stdexcept> #include <stdexcept>
#include <stdint.h>
#include <boost/variant.hpp> #include <string.h>
#include <vector>
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes

View file

@ -7,6 +7,7 @@
#include "script/script.h" #include "script/script.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include <boost/foreach.hpp> #include <boost/foreach.hpp>

View file

@ -6,9 +6,12 @@
#ifndef H_BITCOIN_SCRIPT_STANDARD #ifndef H_BITCOIN_SCRIPT_STANDARD
#define H_BITCOIN_SCRIPT_STANDARD #define H_BITCOIN_SCRIPT_STANDARD
#include "key.h"
#include "script/script.h" #include "script/script.h"
#include "script/interpreter.h" #include "script/interpreter.h"
#include <boost/variant.hpp>
#include <stdint.h> #include <stdint.h>
class CScript; class CScript;

View file

@ -12,6 +12,7 @@
#include "script/script.h" #include "script/script.h"
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>

View file

@ -8,6 +8,7 @@
#include "core.h" #include "core.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"
#include "version.h"
#include <boost/circular_buffer.hpp> #include <boost/circular_buffer.hpp>

View file

@ -7,6 +7,7 @@
#include "core.h" #include "core.h"
#include "tinyformat.h" #include "tinyformat.h"
#include "utilstrencodings.h"
using namespace std; using namespace std;