some include cleanup

This commit is contained in:
moneromooo-monero 2017-07-31 16:36:52 +01:00
parent ab594cfee9
commit 214fd81e93
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
17 changed files with 30 additions and 27 deletions

View file

@ -31,6 +31,7 @@
#include "blockchain_db.h" #include "blockchain_db.h"
#include "cryptonote_basic/cryptonote_format_utils.h" #include "cryptonote_basic/cryptonote_format_utils.h"
#include "profile_tools.h" #include "profile_tools.h"
#include "ringct/rctOps.h"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "blockchain.db" #define MONERO_DEFAULT_LOG_CATEGORY "blockchain.db"

View file

@ -37,6 +37,7 @@
#include "cryptonote_basic/cryptonote_format_utils.h" #include "cryptonote_basic/cryptonote_format_utils.h"
#include "crypto/crypto.h" #include "crypto/crypto.h"
#include "profile_tools.h" #include "profile_tools.h"
#include "ringct/rctOps.h"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "blockchain.db.lmdb" #define MONERO_DEFAULT_LOG_CATEGORY "blockchain.db.lmdb"

View file

@ -29,7 +29,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include "cryptonote_basic/cryptonote_basic.h"
namespace tools namespace tools
{ {

View file

@ -30,8 +30,7 @@
#define USE_UNWIND #define USE_UNWIND
#endif #endif
#include "common/stack_trace.h" #include <stdexcept>
#include "misc_log_ex.h"
#ifdef USE_UNWIND #ifdef USE_UNWIND
#define UNW_LOCAL_ONLY #define UNW_LOCAL_ONLY
#include <libunwind.h> #include <libunwind.h>
@ -40,6 +39,8 @@
#ifndef STATICLIB #ifndef STATICLIB
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
#include "common/stack_trace.h"
#include "misc_log_ex.h"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "stacktrace" #define MONERO_DEFAULT_LOG_CATEGORY "stacktrace"

View file

@ -29,7 +29,6 @@
#ifndef MONERO_EXCEPTION_H #ifndef MONERO_EXCEPTION_H
#define MONERO_EXCEPTION_H #define MONERO_EXCEPTION_H
#include <stdexcept>
#include <string> #include <string>
namespace tools namespace tools

View file

@ -35,7 +35,6 @@
#include "include_base_utils.h" #include "include_base_utils.h"
#include "crypto/crypto.h" #include "crypto/crypto.h"
#include "crypto/hash.h" #include "crypto/hash.h"
#include "ringct/rctOps.h"
namespace cryptonote namespace cryptonote
{ {

View file

@ -32,6 +32,7 @@
#include "cryptonote_basic/cryptonote_format_utils.h" #include "cryptonote_basic/cryptonote_format_utils.h"
#include <boost/serialization/vector.hpp> #include <boost/serialization/vector.hpp>
#include <boost/serialization/utility.hpp> #include <boost/serialization/utility.hpp>
#include "ringct/rctOps.h"
namespace cryptonote namespace cryptonote
{ {

View file

@ -49,8 +49,8 @@
#include "syncobj.h" #include "syncobj.h"
#include "../../contrib/epee/include/net/net_utils_base.h" #include "net/net_utils_base.h"
#include "../../contrib/epee/include/misc_log_ex.h" #include "misc_log_ex.h"
#include <boost/lambda/bind.hpp> #include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp> #include <boost/lambda/lambda.hpp>
#include <boost/uuid/random_generator.hpp> #include <boost/uuid/random_generator.hpp>
@ -69,10 +69,10 @@
#include <boost/asio/basic_socket.hpp> #include <boost/asio/basic_socket.hpp>
#include <boost/asio/ip/unicast.hpp> #include <boost/asio/ip/unicast.hpp>
#include "../../src/cryptonote_protocol/cryptonote_protocol_handler.h" #include "cryptonote_protocol_handler.h"
#include "../../src/p2p/network_throttle.hpp" #include "p2p/network_throttle.hpp"
#include "../../../src/cryptonote_core/cryptonote_core.h" // e.g. for the send_stop_signal() #include "cryptonote_core/cryptonote_core.h" // e.g. for the send_stop_signal()
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "net.cn" #define MONERO_DEFAULT_LOG_CATEGORY "net.cn"

View file

@ -41,7 +41,7 @@
#include "cryptonote_basic/cryptonote_format_utils.h" #include "cryptonote_basic/cryptonote_format_utils.h"
#include "profile_tools.h" #include "profile_tools.h"
#include "../../src/p2p/network_throttle-detail.hpp" #include "p2p/network_throttle-detail.hpp"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "net.cn" #define MONERO_DEFAULT_LOG_CATEGORY "net.cn"

View file

@ -41,7 +41,7 @@
#include "daemon/rpc.h" #include "daemon/rpc.h"
#include "daemon/command_server.h" #include "daemon/command_server.h"
#include "version.h" #include "version.h"
#include "../../contrib/epee/include/syncobj.h" #include "syncobj.h"
using namespace epee; using namespace epee;

View file

@ -53,8 +53,8 @@
#include "syncobj.h" #include "syncobj.h"
#include "../../contrib/epee/include/net/net_utils_base.h" #include "net/net_utils_base.h"
#include "../../contrib/epee/include/misc_log_ex.h" #include "misc_log_ex.h"
#include <boost/lambda/bind.hpp> #include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp> #include <boost/lambda/lambda.hpp>
#include <boost/uuid/random_generator.hpp> #include <boost/uuid/random_generator.hpp>
@ -74,11 +74,11 @@
#include <boost/asio/basic_socket.hpp> #include <boost/asio/basic_socket.hpp>
#include <boost/asio/ip/unicast.hpp> #include <boost/asio/ip/unicast.hpp>
#include "../../contrib/epee/include/net/abstract_tcp_server2.h" #include "net/abstract_tcp_server2.h"
// TODO: // TODO:
#include "../../src/p2p/network_throttle-detail.hpp" #include "network_throttle-detail.hpp"
#include "../../src/cryptonote_core/cryptonote_core.h" #include "cryptonote_core/cryptonote_core.h"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "net.p2p" #define MONERO_DEFAULT_LOG_CATEGORY "net.p2p"

View file

@ -59,8 +59,8 @@
#include <memory> #include <memory>
#include "../../contrib/epee/include/net/net_utils_base.h" #include "net/net_utils_base.h"
#include "../../contrib/epee/include/syncobj.h" #include "syncobj.h"
namespace epee namespace epee
{ {

View file

@ -51,8 +51,8 @@
#include "syncobj.h" #include "syncobj.h"
#include "../../contrib/epee/include/net/net_utils_base.h" #include "net/net_utils_base.h"
#include "../../contrib/epee/include/misc_log_ex.h" #include "misc_log_ex.h"
#include <boost/lambda/bind.hpp> #include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp> #include <boost/lambda/lambda.hpp>
#include <boost/uuid/random_generator.hpp> #include <boost/uuid/random_generator.hpp>
@ -71,10 +71,10 @@
#include <boost/asio/basic_socket.hpp> #include <boost/asio/basic_socket.hpp>
#include <boost/asio/ip/unicast.hpp> #include <boost/asio/ip/unicast.hpp>
#include "../../contrib/epee/include/net/abstract_tcp_server2.h" #include "net/abstract_tcp_server2.h"
// TODO: // TODO:
#include "../../src/p2p/network_throttle-detail.hpp" #include "network_throttle-detail.hpp"
#undef MONERO_DEFAULT_LOG_CATEGORY #undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "net.throttle" #define MONERO_DEFAULT_LOG_CATEGORY "net.throttle"

View file

@ -36,7 +36,7 @@
#ifndef INCLUDED_src_p2p_throttle_detail_hpp #ifndef INCLUDED_src_p2p_throttle_detail_hpp
#define INCLUDED_src_p2p_throttle_detail_hpp #define INCLUDED_src_p2p_throttle_detail_hpp
#include "../../src/p2p/network_throttle.hpp" #include "network_throttle.hpp"
namespace epee namespace epee
{ {

View file

@ -54,7 +54,7 @@ Throttling work by:
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "../../src/p2p/network_throttle-detail.hpp" #include "network_throttle-detail.hpp"
namespace epee namespace epee
{ {

View file

@ -54,8 +54,8 @@
#include "syncobj.h" #include "syncobj.h"
#include "../../contrib/epee/include/net/net_utils_base.h" #include "net/net_utils_base.h"
#include "../../contrib/epee/include/misc_log_ex.h" #include "misc_log_ex.h"
#include <boost/lambda/bind.hpp> #include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp> #include <boost/lambda/lambda.hpp>
#include <boost/uuid/random_generator.hpp> #include <boost/uuid/random_generator.hpp>

View file

@ -35,7 +35,9 @@
#include "net/net_utils_base.h" #include "net/net_utils_base.h"
#include "misc_language.h" #include "misc_language.h"
#include "cryptonote_config.h" #include "cryptonote_config.h"
#ifdef ALLOW_DEBUG_COMMANDS
#include "crypto/crypto.h" #include "crypto/crypto.h"
#endif
namespace nodetool namespace nodetool
{ {