mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Add ripple_basics unity build module
This commit is contained in:
@@ -24,4 +24,52 @@
|
||||
|
||||
#include "ripple_basics.h"
|
||||
|
||||
//#include "src/cpp/ripple/Amount.cpp"
|
||||
// VFALCO: TODO, clean this up
|
||||
// This is here for Amount*.cpp
|
||||
#include "src/cpp/ripple/bignum.h"
|
||||
#if (ULONG_MAX > UINT_MAX)
|
||||
#define BN_add_word64(bn, word) BN_add_word(bn, word)
|
||||
#define BN_sub_word64(bn, word) BN_sub_word(bn, word)
|
||||
#define BN_mul_word64(bn, word) BN_mul_word(bn, word)
|
||||
#define BN_div_word64(bn, word) BN_div_word(bn, word)
|
||||
#else
|
||||
#include "src/cpp/ripple/BigNum64.h"
|
||||
#endif
|
||||
|
||||
static const uint64 tenTo14 = 100000000000000ull;
|
||||
static const uint64 tenTo14m1 = tenTo14 - 1;
|
||||
static const uint64 tenTo17 = tenTo14 * 1000;
|
||||
static const uint64 tenTo17m1 = tenTo17 - 1;
|
||||
|
||||
// VFALCO: TODO, fix these warnings!
|
||||
#ifdef _MSC_VER
|
||||
//#pragma warning (push) // Causes spurious C4503 "decorated name exceeds maximum length"
|
||||
#pragma warning (disable: 4018) // signed/unsigned mismatch
|
||||
#pragma warning (disable: 4244) // conversion, possible loss of data
|
||||
#endif
|
||||
|
||||
#include "src/cpp/ripple/Log.cpp"
|
||||
|
||||
#include "src/cpp/ripple/Amount.cpp"
|
||||
#include "src/cpp/ripple/AmountRound.cpp"
|
||||
#include "src/cpp/ripple/BitcoinUtil.cpp" // no log
|
||||
#include "src/cpp/ripple/DeterministicKeys.cpp"
|
||||
#include "src/cpp/ripple/ECIES.cpp" // no log
|
||||
#include "src/cpp/ripple/FieldNames.cpp" // no log
|
||||
#include "src/cpp/ripple/HashedObject.cpp"
|
||||
#include "src/cpp/ripple/PackedMessage.cpp" // no log
|
||||
#include "src/cpp/ripple/ParameterTable.cpp" // no log
|
||||
#include "src/cpp/ripple/ParseSection.cpp"
|
||||
#include "src/cpp/ripple/PlatRand.cpp" // no log
|
||||
#include "src/cpp/ripple/ProofOfWork.cpp"
|
||||
#include "src/cpp/ripple/RangeSet.cpp"
|
||||
#include "src/cpp/ripple/rfc1751.cpp" // no log
|
||||
#include "src/cpp/ripple/SHAMap.cpp"
|
||||
#include "src/cpp/ripple/SHAMapDiff.cpp" // no log
|
||||
#include "src/cpp/ripple/SHAMapNodes.cpp" // no log
|
||||
#include "src/cpp/ripple/SHAMapSync.cpp"
|
||||
#include "src/cpp/ripple/utils.cpp" // no log
|
||||
|
||||
#ifdef _MSC_VER
|
||||
//#pragma warning (pop)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user