Skip to content

Commit

Permalink
Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated in…
Browse files Browse the repository at this point in the history
…cludes)
  • Loading branch information
jtimon authored and sipa committed Sep 8, 2014
1 parent df623d8 commit 86dbeea
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ BITCOIN_CORE_H = \
rpcclient.h \
rpcprotocol.h \
rpcserver.h \
script.h \
scriptutils.h \
serialize.h \
sync.h \
threadsafety.h \
Expand Down Expand Up @@ -206,7 +206,7 @@ libbitcoin_common_a_SOURCES = \
keystore.cpp \
netbase.cpp \
protocol.cpp \
script.cpp \
scriptutils.cpp \
$(BITCOIN_CORE_H)

# util: shared between all executables.
Expand Down
2 changes: 1 addition & 1 deletion src/base58.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "chainparams.h"
#include "key.h"
#include "script.h"
#include "scriptutils.h"

#include <string>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "bloom.h"

#include "core.h"
#include "script.h"
#include "scriptutils.h"

#include <math.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef BITCOIN_CORE_H
#define BITCOIN_CORE_H

#include "script.h"
#include "scriptutils.h"
#include "serialize.h"
#include "uint256.h"

Expand Down
2 changes: 1 addition & 1 deletion src/core_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "core_io.h"
#include "core.h"
#include "serialize.h"
#include "script.h"
#include "scriptutils.h"
#include "util.h"

#include <boost/assign/list_of.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "core_io.h"
#include "univalue/univalue.h"
#include "script.h"
#include "scriptutils.h"
#include "core.h"
#include "serialize.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion src/crypter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "crypter.h"

#include "script.h"
#include "scriptutils.h"
#include "util.h"

#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/keystore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "crypter.h"
#include "key.h"
#include "script.h"
#include "scriptutils.h"
#include "util.h"

#include <boost/foreach.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "core.h"
#include "net.h"
#include "pow.h"
#include "script.h"
#include "scriptutils.h"
#include "sync.h"
#include "txmempool.h"
#include "uint256.h"
Expand Down
2 changes: 1 addition & 1 deletion src/qt/transactiondesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "db.h"
#include "main.h"
#include "paymentserver.h"
#include "script.h"
#include "scriptutils.h"
#include "transactionrecord.h"
#include "timedata.h"
#include "ui_interface.h"
Expand Down
2 changes: 1 addition & 1 deletion src/script.cpp → src/scriptutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "script.h"
#include "scriptutils.h"

#include "crypto/ripemd160.h"
#include "crypto/sha1.h"
Expand Down
4 changes: 2 additions & 2 deletions src/script.h → src/scriptutils.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_SCRIPT
#define H_BITCOIN_SCRIPT
#ifndef H_BITCOIN_SCRIPTUTILS
#define H_BITCOIN_SCRIPTUTILS

#include "key.h"
#include "utilstrencodings.h"
Expand Down
2 changes: 1 addition & 1 deletion src/test/DoS_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "main.h"
#include "net.h"
#include "pow.h"
#include "script.h"
#include "scriptutils.h"
#include "serialize.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion src/test/base58_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "data/base58_keys_valid.json.h"

#include "key.h"
#include "script.h"
#include "scriptutils.h"
#include "uint256.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion src/test/canonical_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "data/sig_noncanonical.json.h"
#include "data/sig_canonical.json.h"
#include "random.h"
#include "script.h"
#include "scriptutils.h"
#include "util.h"

#include <boost/foreach.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/test/key_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "key.h"

#include "base58.h"
#include "script.h"
#include "scriptutils.h"
#include "uint256.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion src/test/multisig_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "key.h"
#include "keystore.h"
#include "main.h"
#include "script.h"
#include "scriptutils.h"
#include "uint256.h"

#include <boost/assign/std/vector.hpp>
Expand Down
4 changes: 1 addition & 3 deletions src/test/script_P2SH_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "script.h"

#include "key.h"
#include "keystore.h"
#include "main.h"
#include "script.h"
#include "scriptutils.h"

#include <vector>

Expand Down
4 changes: 1 addition & 3 deletions src/test/script_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "script.h"

#include "data/script_invalid.json.h"
#include "data/script_valid.json.h"

#include "key.h"
#include "keystore.h"
#include "main.h"
#include "script.h"
#include "scriptutils.h"
#include "core_io.h"

#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion src/test/scriptnum_tests.cpp
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.

#include "bignum.h"
#include "script.h"
#include "scriptutils.h"
#include <boost/test/unit_test.hpp>
#include <limits.h>
#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/sighash_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "main.h"
#include "random.h"
#include "serialize.h"
#include "script.h"
#include "scriptutils.h"
#include "util.h"
#include "version.h"

Expand Down
2 changes: 1 addition & 1 deletion src/test/sigopcount_tests.cpp
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.

#include "key.h"
#include "script.h"
#include "scriptutils.h"
#include "uint256.h"

#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/test/transaction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "key.h"
#include "keystore.h"
#include "main.h"
#include "script.h"
#include "scriptutils.h"
#include "core_io.h"

#include <map>
Expand Down

0 comments on commit 86dbeea

Please sign in to comment.