mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
Rename types.h to IntegerTypes.h and move to ripple_basics.h
This commit is contained in:
@@ -32,6 +32,6 @@
|
|||||||
#ifndef RIPPLE_BASICS_H
|
#ifndef RIPPLE_BASICS_H
|
||||||
#define RIPPLE_BASICS_H
|
#define RIPPLE_BASICS_H
|
||||||
|
|
||||||
|
#include "src/cpp/ripple/IntegerTypes.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
#ifndef RIPPLE_CLIENT_H
|
#ifndef RIPPLE_CLIENT_H
|
||||||
#define RIPPLE_CLIENT_H
|
#define RIPPLE_CLIENT_H
|
||||||
|
|
||||||
|
#include "modules/ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
#ifndef RIPPLE_DB_H
|
#ifndef RIPPLE_DB_H
|
||||||
#define RIPPLE_DB_H
|
#define RIPPLE_DB_H
|
||||||
|
|
||||||
|
#include "modules/ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
#ifndef RIPPLE_LEDGER_H
|
#ifndef RIPPLE_LEDGER_H
|
||||||
#define RIPPLE_LEDGER_H
|
#define RIPPLE_LEDGER_H
|
||||||
|
|
||||||
|
#include "modules/ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
#ifndef RIPPLE_MAIN_H
|
#ifndef RIPPLE_MAIN_H
|
||||||
#define RIPPLE_MAIN_H
|
#define RIPPLE_MAIN_H
|
||||||
|
|
||||||
|
#include "modules/ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -32,6 +32,6 @@
|
|||||||
#ifndef RIPPLE_NET_H
|
#ifndef RIPPLE_NET_H
|
||||||
#define RIPPLE_NET_H
|
#define RIPPLE_NET_H
|
||||||
|
|
||||||
|
#include "modules/ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1625,7 +1625,7 @@
|
|||||||
<ClInclude Include="src\cpp\ripple\TransactionQueue.h" />
|
<ClInclude Include="src\cpp\ripple\TransactionQueue.h" />
|
||||||
<ClInclude Include="src\cpp\ripple\Transactor.h" />
|
<ClInclude Include="src\cpp\ripple\Transactor.h" />
|
||||||
<ClInclude Include="src\cpp\ripple\TrustSetTransactor.h" />
|
<ClInclude Include="src\cpp\ripple\TrustSetTransactor.h" />
|
||||||
<ClInclude Include="src\cpp\ripple\types.h" />
|
<ClInclude Include="src\cpp\ripple\IntegerTypes.h" />
|
||||||
<ClInclude Include="src\cpp\ripple\uint256.h" />
|
<ClInclude Include="src\cpp\ripple\uint256.h" />
|
||||||
<ClInclude Include="src\cpp\ripple\UniqueNodeList.h" />
|
<ClInclude Include="src\cpp\ripple\UniqueNodeList.h" />
|
||||||
<ClInclude Include="src\cpp\ripple\utils.h" />
|
<ClInclude Include="src\cpp\ripple\utils.h" />
|
||||||
|
|||||||
@@ -1133,9 +1133,6 @@
|
|||||||
<ClInclude Include="src\cpp\ripple\rfc1751.h">
|
<ClInclude Include="src\cpp\ripple\rfc1751.h">
|
||||||
<Filter>1. Modules\ripple_basics\types</Filter>
|
<Filter>1. Modules\ripple_basics\types</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="src\cpp\ripple\types.h">
|
|
||||||
<Filter>1. Modules\ripple_basics\types</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="src\cpp\ripple\utils.h">
|
<ClInclude Include="src\cpp\ripple\utils.h">
|
||||||
<Filter>1. Modules\ripple_basics\types</Filter>
|
<Filter>1. Modules\ripple_basics\types</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@@ -1364,6 +1361,9 @@
|
|||||||
<ClInclude Include="build\proto\ripple.pb.h">
|
<ClInclude Include="build\proto\ripple.pb.h">
|
||||||
<Filter>1. Modules\ripple_basics\protobuf</Filter>
|
<Filter>1. Modules\ripple_basics\protobuf</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\cpp\ripple\IntegerTypes.h">
|
||||||
|
<Filter>1. Modules\ripple_basics\types</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="wallet.xml" />
|
<None Include="wallet.xml" />
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "../ripple/types.h"
|
|
||||||
#include "../ripple/utils.h"
|
#include "../ripple/utils.h"
|
||||||
|
|
||||||
#define SQL_FOREACH(_db, _strQuery) \
|
#define SQL_FOREACH(_db, _strQuery) \
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#include "../json/value.h"
|
#include "../json/value.h"
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "RippleAddress.h"
|
#include "RippleAddress.h"
|
||||||
#include "SerializedLedger.h"
|
#include "SerializedLedger.h"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// TODO: these things should all go somewhere
|
// TODO: these things should all go somewhere
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "types.h"
|
|
||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include <openssl/ripemd.h>
|
#include <openssl/ripemd.h>
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <boost/asio/ssl.hpp>
|
#include <boost/asio/ssl.hpp>
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "RippleAddress.h"
|
#include "RippleAddress.h"
|
||||||
#include "ParseSection.h"
|
#include "ParseSection.h"
|
||||||
#include "SerializedTypes.h"
|
#include "SerializedTypes.h"
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include "Peer.h"
|
#include "Peer.h"
|
||||||
#include "PackedMessage.h"
|
#include "PackedMessage.h"
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Access to the Ripple network.
|
// Access to the Ripple network.
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#ifndef __HASHPREFIXES__
|
#ifndef __HASHPREFIXES__
|
||||||
#define __HASHPREFIXES__
|
#define __HASHPREFIXES__
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
// TXN - Hash of transaction plus signature to give transaction ID
|
// TXN - Hash of transaction plus signature to give transaction ID
|
||||||
const uint32 sHP_TransactionID = 0x54584E00;
|
const uint32 sHP_TransactionID = 0x54584E00;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
#include <boost/thread/condition_variable.hpp>
|
#include <boost/thread/condition_variable.hpp>
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include "ScopedLock.h"
|
#include "ScopedLock.h"
|
||||||
#include "TaggedCache.h"
|
#include "TaggedCache.h"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#ifndef __TYPES_HH__
|
#ifndef INTEGERTYPES_H
|
||||||
#define __TYPES_HH__
|
#define INTEGERTYPES_H
|
||||||
|
|
||||||
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
|
||||||
|
|
||||||
|
// VFALCO: TODO, determine if Borland C is supported
|
||||||
|
#if defined (_MSC_VER) /*|| defined(__BORLANDC__)*/
|
||||||
typedef __int64 int64;
|
typedef __int64 int64;
|
||||||
typedef unsigned __int64 uint64;
|
typedef unsigned __int64 uint64;
|
||||||
typedef unsigned int uint32;
|
typedef unsigned int uint32;
|
||||||
@@ -10,7 +10,6 @@ typedef unsigned short int uint16;
|
|||||||
typedef int int32;
|
typedef int int32;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
typedef long long int64;
|
typedef long long int64;
|
||||||
typedef unsigned long long uint64;
|
typedef unsigned long long uint64;
|
||||||
typedef unsigned int uint32;
|
typedef unsigned int uint32;
|
||||||
@@ -18,8 +17,13 @@ typedef unsigned short int uint16;
|
|||||||
typedef int int32;
|
typedef int int32;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// VFALCO: TODO, make sure minimum VS version is 9, 10, or 11
|
||||||
|
// If commenting this out creates a problem, contact me!
|
||||||
|
/*
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1300
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
#define for if (false) ; else for
|
#define for if (false) ; else for
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
#include "../json/value.h"
|
#include "../json/value.h"
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "LoadMonitor.h"
|
#include "LoadMonitor.h"
|
||||||
|
|
||||||
// Note that this queue should only be used for CPU-bound jobs
|
// Note that this queue should only be used for CPU-bound jobs
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include "TransactionMeta.h"
|
#include "TransactionMeta.h"
|
||||||
#include "AccountState.h"
|
#include "AccountState.h"
|
||||||
#include "NicknameState.h"
|
#include "NicknameState.h"
|
||||||
#include "types.h"
|
|
||||||
#include "BitcoinUtil.h"
|
#include "BitcoinUtil.h"
|
||||||
#include "SHAMap.h"
|
#include "SHAMap.h"
|
||||||
#include "InstanceCounter.h"
|
#include "InstanceCounter.h"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#include "Ledger.h"
|
#include "Ledger.h"
|
||||||
#include "LedgerHistory.h"
|
#include "LedgerHistory.h"
|
||||||
#include "Peer.h"
|
#include "Peer.h"
|
||||||
#include "types.h"
|
|
||||||
#include "LedgerAcquire.h"
|
#include "LedgerAcquire.h"
|
||||||
#include "Transaction.h"
|
#include "Transaction.h"
|
||||||
#include "TransactionEngine.h"
|
#include "TransactionEngine.h"
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include "../json/value.h"
|
#include "../json/value.h"
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
extern int upTime();
|
extern int upTime();
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
extern int upTime();
|
extern int upTime();
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ namespace boost {
|
|||||||
// Ensure that we don't get value.h without writer.h
|
// Ensure that we don't get value.h without writer.h
|
||||||
#include "../json/json.h"
|
#include "../json/json.h"
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
enum LogSeverity
|
enum LogSeverity
|
||||||
{
|
{
|
||||||
lsINVALID = -1, // used to indicate an invalid severity
|
lsINVALID = -1, // used to indicate an invalid severity
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/icl/interval_set.hpp>
|
#include <boost/icl/interval_set.hpp>
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
class RangeSet
|
class RangeSet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include <boost/enable_shared_from_this.hpp>
|
#include <boost/enable_shared_from_this.hpp>
|
||||||
#include <boost/unordered_map.hpp>
|
#include <boost/unordered_map.hpp>
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include "ScopedLock.h"
|
#include "ScopedLock.h"
|
||||||
#include "Serializer.h"
|
#include "Serializer.h"
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
class SNTPQuery
|
class SNTPQuery
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
|
|
||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include "types.h"
|
|
||||||
#include "InstanceCounter.h"
|
#include "InstanceCounter.h"
|
||||||
|
|
||||||
DEFINE_INSTANCE(Suppression);
|
DEFINE_INSTANCE(Suppression);
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
|
|
||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include "types.h"
|
|
||||||
#include "SerializedValidation.h"
|
#include "SerializedValidation.h"
|
||||||
#include "TaggedCache.h"
|
#include "TaggedCache.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/functional/hash.hpp>
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1300
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
#define QUALITY_ONE 1000000000 // 10e9
|
#define QUALITY_ONE 1000000000 // 10e9
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user