From 0e30552b6021550b7ea2965a5c1b6c2dc14f5d53 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 13 Aug 2023 16:14:33 +0800 Subject: [PATCH] update --- demo/src/async.cpp | 11 -------- demo/src/bundled_fmtlib_format.cpp | 52 -------------------------------------- demo/src/cfg.cpp | 8 ------ demo/src/color_sinks.cpp | 51 ------------------------------------- demo/src/file_sinks.cpp | 20 --------------- demo/src/spdlog.cpp | 26 ------------------- demo/src/stdout_sinks.cpp | 29 --------------------- 7 files changed, 197 deletions(-) delete mode 100644 demo/src/async.cpp delete mode 100644 demo/src/bundled_fmtlib_format.cpp delete mode 100644 demo/src/cfg.cpp delete mode 100644 demo/src/color_sinks.cpp delete mode 100644 demo/src/file_sinks.cpp delete mode 100644 demo/src/spdlog.cpp delete mode 100644 demo/src/stdout_sinks.cpp diff --git a/demo/src/async.cpp b/demo/src/async.cpp deleted file mode 100644 index 5ea8d8f..0000000 --- a/demo/src/async.cpp +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#include -#include -#include -#include diff --git a/demo/src/bundled_fmtlib_format.cpp b/demo/src/bundled_fmtlib_format.cpp deleted file mode 100644 index 9339182..0000000 --- a/demo/src/bundled_fmtlib_format.cpp +++ /dev/null @@ -1,52 +0,0 @@ -// Slightly modified version of fmt lib's format.cc (version 1.9.1) source file. -// Copyright (c) 2012 - 2016, Victor Zverovich -// All rights reserved. - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT) - -#include - -FMT_BEGIN_NAMESPACE -namespace detail { - -template FMT_API auto dragonbox::to_decimal(float x) noexcept - -> dragonbox::decimal_fp; -template FMT_API auto dragonbox::to_decimal(double x) noexcept - -> dragonbox::decimal_fp; - -#ifndef FMT_STATIC_THOUSANDS_SEPARATOR -template FMT_API locale_ref::locale_ref(const std::locale& loc); -template FMT_API auto locale_ref::get() const -> std::locale; -#endif - -// Explicit instantiations for char. - -template FMT_API auto thousands_sep_impl(locale_ref) - -> thousands_sep_result; -template FMT_API auto decimal_point_impl(locale_ref) -> char; - -template FMT_API void buffer::append(const char*, const char*); - -// DEPRECATED! -// There is no correspondent extern template in format.h because of -// incompatibility between clang and gcc (#2377). -template FMT_API void vformat_to(buffer&, string_view, - basic_format_args, - locale_ref); - -// Explicit instantiations for wchar_t. - -template FMT_API auto thousands_sep_impl(locale_ref) - -> thousands_sep_result; -template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t; - -template FMT_API void buffer::append(const wchar_t*, const wchar_t*); - -} // namespace detail -FMT_END_NAMESPACE - -#endif // !SPDLOG_FMT_EXTERNAL diff --git a/demo/src/cfg.cpp b/demo/src/cfg.cpp deleted file mode 100644 index e5713cc..0000000 --- a/demo/src/cfg.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#include diff --git a/demo/src/color_sinks.cpp b/demo/src/color_sinks.cpp deleted file mode 100644 index 38fa308..0000000 --- a/demo/src/color_sinks.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#include - -#include -#include -// -// color sinks -// -#ifdef _WIN32 -# include -template class SPDLOG_API spdlog::sinks::wincolor_sink; -template class SPDLOG_API spdlog::sinks::wincolor_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink; -#else -# include "spdlog/sinks/ansicolor_sink-inl.h" -template class SPDLOG_API spdlog::sinks::ansicolor_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stderr_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stderr_sink; -#endif - -// factory methods for color loggers -#include "spdlog/sinks/stdout_color_sinks-inl.h" -template SPDLOG_API std::shared_ptr spdlog::stdout_color_mt( - const std::string &logger_name, color_mode mode); -template SPDLOG_API std::shared_ptr spdlog::stdout_color_st( - const std::string &logger_name, color_mode mode); -template SPDLOG_API std::shared_ptr spdlog::stderr_color_mt( - const std::string &logger_name, color_mode mode); -template SPDLOG_API std::shared_ptr spdlog::stderr_color_st( - const std::string &logger_name, color_mode mode); - -template SPDLOG_API std::shared_ptr spdlog::stdout_color_mt( - const std::string &logger_name, color_mode mode); -template SPDLOG_API std::shared_ptr spdlog::stdout_color_st( - const std::string &logger_name, color_mode mode); -template SPDLOG_API std::shared_ptr spdlog::stderr_color_mt( - const std::string &logger_name, color_mode mode); -template SPDLOG_API std::shared_ptr spdlog::stderr_color_st( - const std::string &logger_name, color_mode mode); diff --git a/demo/src/file_sinks.cpp b/demo/src/file_sinks.cpp deleted file mode 100644 index 10ffba6..0000000 --- a/demo/src/file_sinks.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#include -#include -#include -#include - -#include - -template class SPDLOG_API spdlog::sinks::basic_file_sink; -template class SPDLOG_API spdlog::sinks::basic_file_sink; - -#include -template class SPDLOG_API spdlog::sinks::rotating_file_sink; -template class SPDLOG_API spdlog::sinks::rotating_file_sink; diff --git a/demo/src/spdlog.cpp b/demo/src/spdlog.cpp deleted file mode 100644 index c86d8ff..0000000 --- a/demo/src/spdlog.cpp +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -// template instantiate logger constructor with sinks init list -template SPDLOG_API spdlog::logger::logger(std::string name, sinks_init_list::iterator begin, sinks_init_list::iterator end); -template class SPDLOG_API spdlog::sinks::base_sink; -template class SPDLOG_API spdlog::sinks::base_sink; diff --git a/demo/src/stdout_sinks.cpp b/demo/src/stdout_sinks.cpp deleted file mode 100644 index 2d5256a..0000000 --- a/demo/src/stdout_sinks.cpp +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#ifndef SPDLOG_COMPILED_LIB -# error Please define SPDLOG_COMPILED_LIB to compile this file. -#endif - -#include - -#include -#include -#include - -template class SPDLOG_API spdlog::sinks::stdout_sink_base; -template class SPDLOG_API spdlog::sinks::stdout_sink_base; -template class SPDLOG_API spdlog::sinks::stdout_sink; -template class SPDLOG_API spdlog::sinks::stdout_sink; -template class SPDLOG_API spdlog::sinks::stderr_sink; -template class SPDLOG_API spdlog::sinks::stderr_sink; - -template SPDLOG_API std::shared_ptr spdlog::stdout_logger_mt(const std::string &logger_name); -template SPDLOG_API std::shared_ptr spdlog::stdout_logger_st(const std::string &logger_name); -template SPDLOG_API std::shared_ptr spdlog::stderr_logger_mt(const std::string &logger_name); -template SPDLOG_API std::shared_ptr spdlog::stderr_logger_st(const std::string &logger_name); - -template SPDLOG_API std::shared_ptr spdlog::stdout_logger_mt(const std::string &logger_name); -template SPDLOG_API std::shared_ptr spdlog::stdout_logger_st(const std::string &logger_name); -template SPDLOG_API std::shared_ptr spdlog::stderr_logger_mt(const std::string &logger_name); -template SPDLOG_API std::shared_ptr spdlog::stderr_logger_st(const std::string &logger_name);