//------------------------------------------------------------------------------ /* Copyright (c) 2011-2013, OpenCoin, Inc. */ //============================================================================== /** Add this to get the @ref ripple_basics module. @file ripple_basics.cpp @ingroup ripple_basics */ #include "BeastConfig.h" #include "ripple_basics.h" //------------------------------------------------------------------------------ // For Sustain Linux variants // // VFALCO TODO Rewrite Sustain to use beast::Process #ifdef __linux__ #include #include #include #endif #ifdef __FreeBSD__ #include #include #endif //------------------------------------------------------------------------------ // For json/ // #ifdef JSON_USE_CPPTL # include #endif #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR #include "json/json_batchallocator.h" #endif #define JSON_ASSERT_UNREACHABLE assert( false ) #define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw #define JSON_ASSERT_MESSAGE( condition, message ) if (!( condition )) throw std::runtime_error( message ); //------------------------------------------------------------------------------ // For random numbers // // VFALCO TODO Replace OpenSSL randomness with a dependency-free implementation // Perhaps Schneier's Fortuna or a variant. Abstract the collection of // entropy and provide OS-specific implementation. We can re-use the // BearShare source code for this. // // Add Random number generation to beast // #include // Because of ripple_RandomNumbers.cpp #ifdef BEAST_WIN32 # include // for ripple_RandomNumbers.cpp # include // for ripple_RandomNumbers.cpp # include // for ripple_ByteOrder.cpp // defines 'max' and does other stupid things # ifdef max # undef max # endif #endif //------------------------------------------------------------------------------ namespace ripple { #include "containers/ripple_RangeSet.cpp" #include "containers/ripple_TaggedCache.cpp" #include "json/json_reader.cpp" #include "json/json_value.cpp" #include "json/json_writer.cpp" #include "utility/ripple_Log.cpp" #include "utility/ripple_LogFile.cpp" #include "utility/ripple_ByteOrder.cpp" #include "utility/ripple_CountedObject.cpp" #include "utility/ripple_DiffieHellmanUtil.cpp" #include "utility/ripple_IniFile.cpp" #include "utility/ripple_StringUtilities.cpp" #include "utility/ripple_Sustain.cpp" #include "utility/ripple_ThreadName.cpp" #include "utility/ripple_Time.cpp" #include "utility/ripple_UptimeTimer.cpp" #include "utility/ripple_RandomNumbers.cpp" // has Win32/Posix dependencies #include "types/ripple_UInt256.cpp" }