Mercurial > minori
view dep/fmt/src/fmt.cc @ 337:a7d4e5107531
dep/animone: REFACTOR ALL THE THINGS
1: animone now has its own syntax divergent from anisthesia,
making different platforms actually have their own sections
2: process names in animone are now called `comm' (this will
probably break things). this is what its called in bsd/linux
so I'm just going to use it everywhere
3: the X11 code now checks for the existence of a UTF-8 window title
and passes it if available
4: ANYTHING THATS NOT LINUX IS 100% UNTESTED AND CAN AND WILL BREAK!
I still actually need to test the bsd code. to be honest I'm probably
going to move all of the bsds into separate files because they're
all essentially different operating systems at this point
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 19 Jun 2024 12:51:15 -0400 |
parents | 4aeffed717ef |
children |
line wrap: on
line source
module; // Put all implementation-provided headers into the global module fragment // to prevent attachment to this module. #include <algorithm> #include <cerrno> #include <chrono> #include <climits> #include <cmath> #include <cstddef> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <exception> #include <filesystem> #include <fstream> #include <functional> #include <iterator> #include <limits> #include <locale> #include <memory> #include <optional> #include <ostream> #include <stdexcept> #include <string> #include <string_view> #include <system_error> #include <thread> #include <type_traits> #include <typeinfo> #include <utility> #include <variant> #include <vector> #include <version> #if __has_include(<cxxabi.h>) # include <cxxabi.h> #endif #if defined(_MSC_VER) || defined(__MINGW32__) # include <intrin.h> #endif #if defined __APPLE__ || defined(__FreeBSD__) # include <xlocale.h> #endif #if __has_include(<winapifamily.h>) # include <winapifamily.h> #endif #if (__has_include(<fcntl.h>) || defined(__APPLE__) || \ defined(__linux__)) && \ (!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) # include <fcntl.h> # include <sys/stat.h> # include <sys/types.h> # ifndef _WIN32 # include <unistd.h> # else # include <io.h> # endif #endif #ifdef _WIN32 # if defined(__GLIBCXX__) # include <ext/stdio_filebuf.h> # include <ext/stdio_sync_filebuf.h> # endif # define WIN32_LEAN_AND_MEAN # include <windows.h> #endif export module fmt; #define FMT_EXPORT export #define FMT_BEGIN_EXPORT export { #define FMT_END_EXPORT } // If you define FMT_ATTACH_TO_GLOBAL_MODULE // - all declarations are detached from module 'fmt' // - the module behaves like a traditional static library, too // - all library symbols are mangled traditionally // - you can mix TUs with either importing or #including the {fmt} API #ifdef FMT_ATTACH_TO_GLOBAL_MODULE extern "C++" { #endif // All library-provided declarations and definitions must be in the module // purview to be exported. #include "fmt/args.h" #include "fmt/chrono.h" #include "fmt/color.h" #include "fmt/compile.h" #include "fmt/format.h" #include "fmt/os.h" #include "fmt/printf.h" #include "fmt/std.h" #include "fmt/xchar.h" #ifdef FMT_ATTACH_TO_GLOBAL_MODULE } #endif // gcc doesn't yet implement private module fragments #if !FMT_GCC_VERSION module :private; #endif #include "format.cc" #include "os.cc"