aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-11-24Fix linkage errors when linking with a shared library (#2011)Victor Zverovich
2020-11-01Fix ABI compatibility (#1961)Victor Zverovich
2020-11-01Instantiate to_decimal to make gcc lto happy (#1955)Victor Zverovich
2020-10-21Simplify vformat_toVictor Zverovich
2020-10-20Merge vformat_to overloadsVictor Zverovich
2020-10-19Fix compilation for systems without fcntl.h (#1942)darklukee
Co-authored-by: darklukee <no-reply@hidden>
2020-08-19Apply clang-formatVictor Zverovich
2020-08-04Simplify ostreamVictor Zverovich
2020-08-01Make buffer size configurableVictor Zverovich
2020-07-11direct_buffered_file -> ostreamVictor Zverovich
2020-07-10Double buffering no moreVictor Zverovich
2020-07-07Workaround a bug in gccVictor Zverovich
2020-06-07Make symbols readableVictor Zverovich
2020-05-26Fix Mingw supportLucian Petrut
If the ``_POSIX_`` flag is set, _fdopen will not be defined by Mingw headers, which is addressed by this commit. For what is worth, as opposed to ``fdopen``, ``_pipe`` *will* actually have the ``_`` prefix when ``_POSIX_`` is set.
2020-05-10internal -> detail (#1538)Victor Zverovich
2020-05-09Ditch internal::arg_mapVictor Zverovich
2020-05-07Purge basic_writerVictor Zverovich
2020-05-06Remove compatibility stubsVictor Zverovich
2020-04-29Replace FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION with fmt-specific macro ↵asraa
(#1650) Signed-off-by: Asra Ali <asraa@google.com>
2020-04-19Remove remaining wchar_t instantiationVictor Zverovich
2020-04-15Cleanup named argumentsVictor Zverovich
2020-04-14Improve handling of named argumentsVictor Zverovich
2020-04-12Fix a clang-tidy warningVictor Zverovich
2020-04-12Fixed clang tidy warning -multiple declarations in a single statement ↵gabime
reduces readability
2020-04-12Fix clang warning about explicit ctorgabime
2020-02-14Remove misleading FMT_USE_WINDOWS_HVictor Zverovich
2020-01-30Fix symbol visibility on Linux when compiling with -fvisibility=hidden (#1535)Milian Wolff
Make FMT_API symbols use the default visibility on non-Windows platforms. Otherwise, one cannot use the generated fmt library when compiling globally with -fvisibility=hidden. Fixes compile errors like: ``` ../3rdParty/fmt/include/fmt/core.h:757: error: undefined reference to 'fmt::v6::internal::assert_fail(char const*, int, char const*)' ``` Note that the symbol exists, but is local: ``` $ nm -C libfmtd.so.6.1.3 | grep assert_fail U __assert_fail 0000000000233ffa t fmt::v6::internal::assert_fail(char const*, int, char const*) ``` With this patch, the compile error is gone and the symbol is properly exported: ``` $ nm -a bin/libfmtd.so -C | grep assert_fail U __assert_fail 00000000002366ba T fmt::v6::internal::assert_fail(char const*, int, char const*) ``` Change-Id: I96054e622d9a2ae81907e1b01a1033e629767a91
2020-01-22fix interal compiler error when building with mingwdspc-douglas
2019-12-15posix.cc -> os.ccVictor Zverovich
2019-12-15Move OS-specific APIs to a separate headerVictor Zverovich
2019-12-10Reintroduce sprintf_format for ABI compatibilityVictor Zverovich
2019-12-01Avoid wchar_t instantiationsVictor Zverovich
2019-11-26float_spec -> float_specsVictor Zverovich
2019-11-24Instantiate snprintf_floatVictor Zverovich
2019-11-23Integrate Grisu and sprintf digit generatorsVictor Zverovich
2019-11-22Refactor floating-point formattingVictor Zverovich
2019-11-22Refactor floating point formattingVictor Zverovich
2019-11-15Improve POSIX API detectionVictor Zverovich
2019-11-05Use grouping() from locale for specifier 'n'daniel
2019-08-31Fix minor clang-tidy warningsRosen Penev
using instead of typedef. climits instead of limits.h Added missing cast to size_t.
2019-07-07core_format_specs -> sprintf_specsVictor Zverovich
2019-07-04Make the 'n' format specifier work with grisu disabledVictor Zverovich
2019-07-03Use the decimal point from localeVictor Zverovich
2019-05-30FMT_EXPLICIT -> explicit, FMT_NULL -> nullptrVictor Zverovich
2019-05-02Fix DLL visibility of explicit instantiation "declaration" of ↵denchat
internal::basic_data<void> in header format.h and the explicit instantiation "definition" in format.cc (#1134) * Update format.cc As the explicit instantiation *declaration* of `internal::basic_data<void>` in format.h, this explicit instantiation *definition* should mirror FMT_API also. * Mirror visibility of explicit instantiation declaration explicit instantiation declaration of internal::basic_data<void> should mirror visibility of FMT_API * Eliminate `__declspec(dllexport)` designation on extern template internal::basic_data<> when `extern` affected during exporting phase. * Add `FMT_EXTERN_TEMPLATE_API` for designate DLL export `extern template` When exporting DLL, do not designate `__declspec(dllexport)` any template that has any explicit class template declaration a.k.a. `extern template`. Instead, designate `__declspec(dllexport)` at single point where we have explicit class template definition a.k.a. normal instantiation without `extern` Note: this is a c++11 feature. * Delete whole `FMT_USE_EXTERN_TEMPLATES` block and its condition 1. Remove whole `FMT_USE_EXTERN_TEMPLATES` block (trailing `FMT_UDL_TEMPLATE` block) ```` #ifndef FMT_USE_EXTERN_TEMPLATES # ifndef FMT_HEADER_ONLY # define FMT_USE_EXTERN_TEMPLATES \ ((FMT_CLANG_VERSION >= 209 && __cplusplus >= 201103L) || \ (FMT_GCC_VERSION >= 303 && FMT_HAS_GXX_CXX11)) # else # define FMT_USE_EXTERN_TEMPLATES 0 # endif #endif ```` 2. Delete `FMT_USE_EXTERN_TEMPLATES` condition, only condition, that trailing basic_data class template definition. ```` #if FMT_USE_EXTERN_TEMPLATES extern template struct basic_data<void>; #endif ```` 3. Replace `FMT_API` with new `FMT_EXTERN_TEMPLATE_API` added in `core.h` for sake of extern template of `basic_data<void>` * Add `#define FMT_EXTERN extern` only when not `FMT_HEADER_ONLY` * Replace `extern` on basic_data<void> with the `FMT_EXTERN` condition in core.h * replace misspelled if !define() with ifndef
2019-04-27Partially implement Grisu3Victor Zverovich
2019-04-16Remove char_traits (#1117)Victor Zverovich
2019-04-07basic_buffer -> bufferVictor Zverovich
This reduces symbol sizes and gets rid of shadowing warnings.
2019-02-23Use grisu for fixed precisionVictor Zverovich
2019-02-22Implement fixed precisionVictor Zverovich