elements/src/script
MarcoFalke fa32adf9dc
scripted-diff: TxoutType C++11 scoped enum class
-BEGIN VERIFY SCRIPT-
 # General rename helper: $1 -> $2
 rename_global() { sed -i "s/\<$1\>/$2/g" $(git grep -l "$1"); }

 # Helper to rename TxoutType $1
 rename_value() {
   sed -i "s/    TX_$1,/    $1,/g" src/script/standard.h;  # First strip the prefix in the definition (header)
   rename_global TX_$1 "TxoutType::$1";                    # Then replace globally
 }

 # Change the type globally to bring it in line with the style-guide
 # (clsses are UpperCamelCase)
 rename_global 'enum txnouttype' 'enum class TxoutType'
 rename_global      'txnouttype'            'TxoutType'

 # Now rename each enum value
 rename_value 'NONSTANDARD'
 rename_value 'PUBKEY'
 rename_value 'PUBKEYHASH'
 rename_value 'SCRIPTHASH'
 rename_value 'MULTISIG'
 rename_value 'NULL_DATA'
 rename_value 'WITNESS_V0_KEYHASH'
 rename_value 'WITNESS_V0_SCRIPTHASH'
 rename_value 'WITNESS_UNKNOWN'

-END VERIFY SCRIPT-
2020-06-21 06:41:55 -04:00
..
bitcoinconsensus.cpp Drop unused GetType() from CSizeComputer 2018-09-11 00:58:05 -04:00
bitcoinconsensus.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
descriptor.cpp scripted-diff: TxoutType C++11 scoped enum class 2020-06-21 06:41:55 -04:00
descriptor.h Add IsSingleType to Descriptors 2020-04-23 13:59:48 -04:00
interpreter.cpp Simplify usage of Span in several places 2020-05-12 14:19:40 -07:00
interpreter.h [REFACTOR] Initialize PrecomputedTransactionData in CheckInputScripts 2020-04-11 21:32:45 -04:00
keyorigin.h Convert everything except wallet/qt to new serialization 2020-03-30 16:10:30 -07:00
script.cpp refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
script.h Merge #19004: refactor: Replace const char* to std::string 2020-05-27 07:16:10 -04:00
script_error.cpp refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
script_error.h refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
sigcache.cpp refactor: Specify boost/thread/thread.hpp explicitly 2020-06-04 10:05:54 -04:00
sigcache.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sign.cpp scripted-diff: TxoutType C++11 scoped enum class 2020-06-21 06:41:55 -04:00
sign.h scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
signingprovider.cpp Use explicit conversion from WitnessV0KeyHash -> CKeyID 2020-06-19 12:14:08 -07:00
signingprovider.h wallet: Improve LegacyScriptPubKeyMan::CanProvide script recognition 2020-02-12 11:48:30 -05:00
standard.cpp scripted-diff: TxoutType C++11 scoped enum class 2020-06-21 06:41:55 -04:00
standard.h scripted-diff: TxoutType C++11 scoped enum class 2020-06-21 06:41:55 -04:00