From 60e518cc505ad5de6331a5da0d8291346757b9bd Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 2 Jan 2021 15:11:27 -0500 Subject: Low-level #include overhaul - vecstream.h: Revert changes made in aa29519528cb3dbdbfac56819bea670ed8c56c5d. The std::string_view conversion has been made a non-member function (util::buf_to_string_view) and moved to coretmpl.h. - strformat.h: Remove the using declaration importing util::string_format into the global namespace. It has been moved to emucore.h and a few tool sources; other references have been qualified. - osdcore.h: Split out file, directory and path classes and methods to a new header (osdfile.h), Doxygenizing the documentation comments. - Disaggregate many #includes that were including other standard or custom headers. emu.h now includes basically the same things that it did, but other headers have been streamlined; for instance, emucore.h no longer stealth-includes osdcore.h several ways. --- src/lib/util/corefile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/util/corefile.cpp') diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp index fe0747c66a8..cbe70bbf5fc 100644 --- a/src/lib/util/corefile.cpp +++ b/src/lib/util/corefile.cpp @@ -10,6 +10,8 @@ #include "corefile.h" +#include "coretmpl.h" +#include "osdcore.h" #include "unicode.h" #include "vecstream.h" @@ -600,7 +602,7 @@ int core_text_file::vprintf(util::format_argument_pack const &args m_printf_buffer.reserve(1024); m_printf_buffer.seekp(0, ovectorstream::beg); util::stream_format(m_printf_buffer, args); - return puts(std::string_view(m_printf_buffer)); + return puts(buf_to_string_view(m_printf_buffer)); } -- cgit v1.2.3-70-g09d2