Tidy up some source filenames:

* Add .unity suffix to mark unity sources
* Fix some relative include paths
This commit is contained in:
Vinnie Falco
2014-04-22 14:48:48 -07:00
parent 251ce4efbc
commit 5db677d74d
86 changed files with 361 additions and 377 deletions

View File

@@ -26,23 +26,23 @@
#include "../../BeastConfig.h"
// Include this to get all the basic includes included, to prevent errors
#include "../beast/modules/beast_core/beast_core.cpp"
#include "../beast/modules/beast_asio/beast_asio.cpp"
#include "../beast/modules/beast_sqdb/beast_sqdb.cpp"
#include "../../beast/modules/beast_core/beast_core.unity.cpp"
#include "../../beast/modules/beast_asio/beast_asio.unity.cpp"
#include "../../beast/modules/beast_sqdb/beast_sqdb.unity.cpp"
#include "../beast/beast/asio/Asio.cpp"
#include "../beast/beast/boost/Boost.cpp"
#include "../beast/beast/chrono/Chrono.cpp"
#include "../beast/beast/container/Container.cpp"
#include "../beast/beast/crypto/Crypto.cpp"
#include "../beast/beast/http/HTTP.cpp"
#include "../beast/beast/insight/Insight.cpp"
#include "../beast/beast/net/Net.cpp"
#include "../beast/beast/streams/streams.cpp"
#include "../beast/beast/strings/Strings.cpp"
#include "../beast/beast/threads/Threads.cpp"
#include "../beast/beast/utility/Utility.cpp"
#include "../../beast/beast/asio/Asio.unity.cpp"
#include "../../beast/beast/boost/Boost.unity.cpp"
#include "../../beast/beast/chrono/Chrono.unity.cpp"
#include "../../beast/beast/container/Container.unity.cpp"
#include "../../beast/beast/crypto/Crypto.unity.cpp"
#include "../../beast/beast/http/HTTP.unity.cpp"
#include "../../beast/beast/insight/Insight.unity.cpp"
#include "../../beast/beast/net/Net.unity.cpp"
#include "../../beast/beast/streams/streams.unity.cpp"
#include "../../beast/beast/strings/Strings.unity.cpp"
#include "../../beast/beast/threads/Threads.unity.cpp"
#include "../../beast/beast/utility/Utility.unity.cpp"
#include "../beast/beast/cxx14/cxx14.cpp"
#include "../../beast/beast/cxx14/cxx14.unity.cpp"
#include "../beast/beast/unit_test/define_print.cpp"
#include "../../beast/beast/unit_test/define_print.cpp"

View File

@@ -30,4 +30,4 @@
#error "Whoops! This file must be compiled with a C compiler!"
#endif
#include "../beast/modules/beast_sqlite/beast_sqlite.c"
#include "../../beast/modules/beast_sqlite/beast_sqlite.unity.c"

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_COMMON_MULTISOCKET_H_INCLUDED
#define RIPPLE_COMMON_MULTISOCKET_H_INCLUDED
#include "../beast/modules/beast_asio/beast_asio.h"
#include "../../beast/modules/beast_asio/beast_asio.h"
namespace ripple {

View File

@@ -22,7 +22,7 @@
#include <boost/asio/io_service.hpp>
#include "../beast/beast/utility/Journal.h"
#include "../../beast/beast/utility/Journal.h"
#include "Resolver.h"
namespace ripple {

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_COMMON_SSLCONTEXT_H_INCLUDED
#define RIPPLE_COMMON_SSLCONTEXT_H_INCLUDED
#include "../beast/modules/beast_asio/beast_asio.h"
#include "../../beast/modules/beast_asio/beast_asio.h"
#include <string>

View File

@@ -22,7 +22,7 @@
// VFALCO NOTE this sucks that we have to include asio in the header
// just for HTTPMessage!!
#include "../beast/modules/beast_asio/beast_asio.h"
#include "../../beast/modules/beast_asio/beast_asio.h"
# include "api/Port.h"
# include "api/ScopedStream.h"

View File

@@ -23,7 +23,7 @@
#include "../ripple_net/ripple_net.h"
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/asio.hpp>
#include <boost/optional.hpp>

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_JSONPROPERTYSTREAM_H_INCLUDED
#define RIPPLE_JSONPROPERTYSTREAM_H_INCLUDED
#include "../beast/beast/utility/PropertyStream.h"
#include "../../../beast/beast/utility/PropertyStream.h"
namespace ripple {

View File

@@ -20,10 +20,10 @@
#ifndef RIPPLE_JSON_H_INCLUDED
#define RIPPLE_JSON_H_INCLUDED
#include "../beast/beast/Config.h"
#include "../../beast/beast/Config.h"
#include "../beast/beast/strings/String.h"
#include "../beast/beast/utility/PropertyStream.h"
#include "../../beast/beast/strings/String.h"
#include "../../beast/beast/utility/PropertyStream.h"
#include <deque>
#include <stack>

View File

@@ -26,7 +26,7 @@
#include "../../sitefiles/api/Manager.h"
#include "../../beast/modules/beast_core/files/File.h"
#include "../../../beast/modules/beast_core/files/File.h"
namespace ripple {
namespace PeerFinder {

View File

@@ -22,7 +22,7 @@
#include "../../types/api/RipplePublicKey.h"
#include "../../beast/beast/net/IPEndpoint.h"
#include "../../../beast/beast/net/IPEndpoint.h"
#include <boost/optional.hpp>

View File

@@ -22,7 +22,7 @@
#include "Endpoint.h"
#include "../../beast/beast/chrono/abstract_clock.h"
#include "../../../beast/beast/chrono/abstract_clock.h"
namespace ripple {
namespace PeerFinder {

View File

@@ -31,16 +31,16 @@
#include <set>
#include <unordered_set>
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/array.hpp>
#include <boost/optional.hpp>
#include <boost/regex.hpp>
#include "../beast/modules/beast_sqdb/beast_sqdb.h"
#include "../beast/modules/beast_asio/beast_asio.h"
#include "../../beast/modules/beast_sqdb/beast_sqdb.h"
#include "../../beast/modules/beast_asio/beast_asio.h"
#include "../beast/beast/boost/ErrorCode.h"
#include "../beast/beast/chrono/chrono_io.h"
#include "../../beast/beast/boost/ErrorCode.h"
#include "../../beast/beast/chrono/chrono_io.h"
#include "impl/iosformat.h" // VFALCO NOTE move to beast

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_RESOURCE_GOSSIP_H_INCLUDED
#define RIPPLE_RESOURCE_GOSSIP_H_INCLUDED
#include "../../beast/beast/net/IPEndpoint.h"
#include "../../../beast/beast/net/IPEndpoint.h"
namespace ripple {
namespace Resource {

View File

@@ -23,9 +23,9 @@
#include "Consumer.h"
#include "Gossip.h"
#include "../../beast/beast/insight/Collector.h"
#include "../../beast/beast/net/IPEndpoint.h"
#include "../../beast/beast/utility/Journal.h"
#include "../../../beast/beast/insight/Collector.h"
#include "../../../beast/beast/net/IPEndpoint.h"
#include "../../../beast/beast/utility/Journal.h"
namespace ripple {
namespace Resource {

View File

@@ -22,7 +22,7 @@
#include "../../common/UnorderedContainers.h"
#include "../../beast/beast/chrono/abstract_clock.h"
#include "../../../beast/beast/chrono/abstract_clock.h"
namespace ripple {
namespace Resource {

View File

@@ -21,15 +21,15 @@
#include "ripple_resource.h"
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/utility/base_from_member.hpp>
#include "../algorithm/api/DecayingSample.h"
#include "../common/seconds_clock.h"
#include "../beast/beast/Insight.h"
#include "../beast/beast/cxx14/memory.h"
#include "../beast/beast/chrono/chrono_io.h"
#include "../../beast/beast/Insight.h"
#include "../../beast/beast/cxx14/memory.h"
#include "../../beast/beast/chrono/chrono_io.h"
#include "impl/Fees.cpp"
# include "impl/Kind.h"

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_ROCKSDB_H_INCLUDED
#define RIPPLE_ROCKSDB_H_INCLUDED
#include "../beast/beast/Config.h"
#include "../../beast/beast/Config.h"
#ifndef RIPPLE_ROCKSDB_AVAILABLE
# if BEAST_WIN32

View File

@@ -22,7 +22,7 @@
#include "Listener.h"
#include "../../beast/beast/utility/PropertyStream.h"
#include "../../../beast/beast/utility/PropertyStream.h"
namespace ripple {
namespace SiteFiles {

View File

@@ -22,10 +22,10 @@
#include <vector>
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include "../beast/beast/http/URL.h"
#include "../beast/beast/Threads.h"
#include "../../beast/beast/http/URL.h"
#include "../../beast/beast/Threads.h"
# include "api/Section.h"
# include "api/SiteFile.h"

View File

@@ -21,9 +21,9 @@
#include "ripple_sitefiles.h"
#include "../beast/modules/beast_asio/beast_asio.h" // HTTPClientBase
#include "../../beast/modules/beast_asio/beast_asio.h" // HTTPClientBase
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/regex.hpp>
#include <set>

View File

@@ -20,10 +20,10 @@
#ifndef RIPPLE_TESTOVERLAY_H_INCLUDED
#define RIPPLE_TESTOVERLAY_H_INCLUDED
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/unordered_set.hpp>
#include "../beast/modules/beast_core/beast_core.h"
#include "../../beast/modules/beast_core/beast_core.h"
#include <memory>

View File

@@ -20,8 +20,8 @@
#ifndef RIPPLE_TYPES_CRYPTOIDENTIFIER_H_INCLUDED
#define RIPPLE_TYPES_CRYPTOIDENTIFIER_H_INCLUDED
#include "../../beast/beast/ByteOrder.h"
#include "../../beast/beast/crypto/Sha256.h"
#include "../../../beast/beast/ByteOrder.h"
#include "../../../beast/beast/crypto/Sha256.h"
#include <array>
#include "Base58.h"

View File

@@ -20,8 +20,8 @@
#ifndef RIPPLE_TYPES_IDENTIFIERSTORAGE_H_INCLUDED
#define RIPPLE_TYPES_IDENTIFIERSTORAGE_H_INCLUDED
#include "../../beast/beast/crypto/MurmurHash.h"
#include "../../beast/beast/container/hardened_hash.h"
#include "../../../beast/beast/crypto/MurmurHash.h"
#include "../../../beast/beast/container/hardened_hash.h"
#include <array>

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_TYPES_RANDOMNUMBERS_H
#define RIPPLE_TYPES_RANDOMNUMBERS_H
#include "../../beast/beast/utility/Journal.h"
#include "../../../beast/beast/utility/Journal.h"
namespace ripple {

View File

@@ -29,7 +29,7 @@
#include "strHex.h"
#include "ByteOrder.h"
#include "../../beast/beast/container/hardened_hash.h"
#include "../../../beast/beast/container/hardened_hash.h"
#include <functional>

View File

@@ -22,9 +22,9 @@
#include "../json/ripple_json.h"
#include "../beast/beast/Crypto.h"
#include "../../beast/beast/Crypto.h"
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/utility/base_from_member.hpp>
#include <boost/functional/hash.hpp>
#include <boost/unordered_set.hpp>

View File

@@ -20,7 +20,7 @@
#include "../../BeastConfig.h"
#include "ripple_types.h"
#include "../ripple/sslutil/ripple_sslutil.h"
#include "../sslutil/ripple_sslutil.h"
#ifdef BEAST_WIN32
# include <Winsock2.h> // for ByteOrder.cpp

View File

@@ -20,8 +20,8 @@
#ifndef RIPPLE_VALIDATORS_MANAGER_H_INCLUDED
#define RIPPLE_VALIDATORS_MANAGER_H_INCLUDED
#include "../../beast/beast/threads/Stoppable.h"
#include "../../beast/modules/beast_core/files/File.h"
#include "../../../beast/beast/threads/Stoppable.h"
#include "../../../beast/modules/beast_core/files/File.h"
namespace ripple {
namespace Validators {

View File

@@ -20,8 +20,8 @@
#ifndef RIPPLE_VALIDATORS_SOURCE_H_INCLUDED
#define RIPPLE_VALIDATORS_SOURCE_H_INCLUDED
#include "../../beast/beast/smart_ptr/SharedObject.h"
#include "../../beast/modules/beast_core/time/Time.h"
#include "../../../beast/beast/smart_ptr/SharedObject.h"
#include "../../../beast/modules/beast_core/time/Time.h"
namespace ripple {
namespace Validators {

View File

@@ -20,9 +20,9 @@
#ifndef RIPPLE_VALIDATORS_H_INCLUDED
#define RIPPLE_VALIDATORS_H_INCLUDED
#include "../beast/beast/http/URL.h"
#include "../../beast/beast/http/URL.h"
#include "../ripple/types/ripple_types.h"
#include "../types/ripple_types.h"
# include "api/Types.h"
# include "api/Source.h"

View File

@@ -21,7 +21,7 @@
#include "ripple_validators.h"
#include "../beast/modules/beast_core/system/BeforeBoost.h"
#include "../../beast/modules/beast_core/system/BeforeBoost.h"
#include <boost/regex.hpp>
#include <boost/unordered_set.hpp>
#include <boost/multi_index_container.hpp>
@@ -30,9 +30,9 @@
#include <set>
#include "../beast/beast/threads/ScopedWrapperContext.h"
#include "../beast/modules/beast_asio/beast_asio.h"
#include "../beast/modules/beast_sqdb/beast_sqdb.h"
#include "../../beast/beast/threads/ScopedWrapperContext.h"
#include "../../beast/modules/beast_asio/beast_asio.h"
#include "../../beast/modules/beast_sqdb/beast_sqdb.h"
#include "../algorithm/api/CycledSet.h"
#include "../testoverlay/ripple_testoverlay.h" // for unit test