Skip to content

Commit 72ae6f8

Browse files
committed
Merge #9244: Trivial refactor: Remove extern keyword from function declarations
446a8f9 Trivial refactor: Remove extern keyword from function declarations, as they are extern by default. (Karl-Johan Alm)
2 parents a143b88 + 446a8f9 commit 72ae6f8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/core_io.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ class uint256;
1515
class UniValue;
1616

1717
// core_read.cpp
18-
extern CScript ParseScript(const std::string& s);
19-
extern std::string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode = false);
20-
extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx, bool fTryNoWitness = false);
21-
extern bool DecodeHexBlk(CBlock&, const std::string& strHexBlk);
22-
extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
23-
extern uint256 ParseHashStr(const std::string&, const std::string& strName);
24-
extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
18+
CScript ParseScript(const std::string& s);
19+
std::string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode = false);
20+
bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx, bool fTryNoWitness = false);
21+
bool DecodeHexBlk(CBlock&, const std::string& strHexBlk);
22+
uint256 ParseHashUV(const UniValue& v, const std::string& strName);
23+
uint256 ParseHashStr(const std::string&, const std::string& strName);
24+
std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
2525

2626
// core_write.cpp
27-
extern std::string FormatScript(const CScript& script);
28-
extern std::string EncodeHexTx(const CTransaction& tx);
29-
extern void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
30-
extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
27+
std::string FormatScript(const CScript& script);
28+
std::string EncodeHexTx(const CTransaction& tx);
29+
void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
30+
void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
3131

3232
#endif // BITCOIN_CORE_IO_H

0 commit comments

Comments
 (0)