[libcxx-commits] [libcxx] [libc++] Use proper functions instead of macros in bsd_locale_defaults.h (PR #113759)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 31 10:25:04 PDT 2024


================
@@ -46,7 +54,7 @@ size_t __libcpp_mbsnrtowcs_l(wchar_t* dest, const char** src, size_t max_out, si
 size_t __libcpp_mbrtowc_l(wchar_t* dest, cosnt char* src, size_t count, mbstate_t*, locale_t);
 int __libcpp_mbtowc_l(wchar_t* dest, const char* src, size_t count, locale_t);
 size_t __libcpp_mbrlen_l(const char* str, size_t count, mbstate_t*, locale_t);
-lconv* __libcpp_localeconv_l(locale_t);
+lconv* __libcpp_localeconv_l(locale_t&);
----------------
philnik777 wrote:

Ah, OK. SGTM. Could you maybe add a comment that this should be refactored?

https://github.com/llvm/llvm-project/pull/113759


More information about the libcxx-commits mailing list