2828
2929_LIBCPP_BEGIN_NAMESPACE_STD
3030
31- inline _LIBCPP_HIDE_FROM_ABI decltype (MB_CUR_MAX) __libcpp_mb_cur_max_l(locale_t __l) {
31+ inline _LIBCPP_HIDE_FROM_ABI decltype (MB_CUR_MAX) __libcpp_mb_cur_max_l(__libcpp_locale_t __l) {
3232 __libcpp_locale_guard __current (__l);
3333 return MB_CUR_MAX;
3434}
3535
3636#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
37- inline _LIBCPP_HIDE_FROM_ABI wint_t __libcpp_btowc_l (int __c, locale_t __l) {
37+ inline _LIBCPP_HIDE_FROM_ABI wint_t __libcpp_btowc_l (int __c, __libcpp_locale_t __l) {
3838 __libcpp_locale_guard __current (__l);
3939 return btowc (__c);
4040}
4141
42- inline _LIBCPP_HIDE_FROM_ABI int __libcpp_wctob_l (wint_t __c, locale_t __l) {
42+ inline _LIBCPP_HIDE_FROM_ABI int __libcpp_wctob_l (wint_t __c, __libcpp_locale_t __l) {
4343 __libcpp_locale_guard __current (__l);
4444 return wctob (__c);
4545}
4646
47- inline _LIBCPP_HIDE_FROM_ABI size_t
48- __libcpp_wcsnrtombs_l ( char * __dest, const wchar_t ** __src, size_t __nwc, size_t __len, mbstate_t * __ps, locale_t __l) {
47+ inline _LIBCPP_HIDE_FROM_ABI size_t __libcpp_wcsnrtombs_l (
48+ char * __dest, const wchar_t ** __src, size_t __nwc, size_t __len, mbstate_t * __ps, __libcpp_locale_t __l) {
4949 __libcpp_locale_guard __current (__l);
5050 return wcsnrtombs (__dest, __src, __nwc, __len, __ps);
5151}
5252
53- inline _LIBCPP_HIDE_FROM_ABI size_t __libcpp_wcrtomb_l (char * __s, wchar_t __wc, mbstate_t * __ps, locale_t __l) {
53+ inline _LIBCPP_HIDE_FROM_ABI size_t
54+ __libcpp_wcrtomb_l (char * __s, wchar_t __wc, mbstate_t * __ps, __libcpp_locale_t __l) {
5455 __libcpp_locale_guard __current (__l);
5556 return wcrtomb (__s, __wc, __ps);
5657}
5758
58- inline _LIBCPP_HIDE_FROM_ABI size_t
59- __libcpp_mbsnrtowcs_l ( wchar_t * __dest, const char ** __src, size_t __nms, size_t __len, mbstate_t * __ps, locale_t __l) {
59+ inline _LIBCPP_HIDE_FROM_ABI size_t __libcpp_mbsnrtowcs_l (
60+ wchar_t * __dest, const char ** __src, size_t __nms, size_t __len, mbstate_t * __ps, __libcpp_locale_t __l) {
6061 __libcpp_locale_guard __current (__l);
6162 return mbsnrtowcs (__dest, __src, __nms, __len, __ps);
6263}
6364
6465inline _LIBCPP_HIDE_FROM_ABI size_t
65- __libcpp_mbrtowc_l (wchar_t * __pwc, const char * __s, size_t __n, mbstate_t * __ps, locale_t __l) {
66+ __libcpp_mbrtowc_l (wchar_t * __pwc, const char * __s, size_t __n, mbstate_t * __ps, __libcpp_locale_t __l) {
6667 __libcpp_locale_guard __current (__l);
6768 return mbrtowc (__pwc, __s, __n, __ps);
6869}
6970
70- inline _LIBCPP_HIDE_FROM_ABI int __libcpp_mbtowc_l (wchar_t * __pwc, const char * __pmb, size_t __max, locale_t __l) {
71+ inline _LIBCPP_HIDE_FROM_ABI int
72+ __libcpp_mbtowc_l (wchar_t * __pwc, const char * __pmb, size_t __max, __libcpp_locale_t __l) {
7173 __libcpp_locale_guard __current (__l);
7274 return mbtowc (__pwc, __pmb, __max);
7375}
7476
75- inline _LIBCPP_HIDE_FROM_ABI size_t __libcpp_mbrlen_l (const char * __s, size_t __n, mbstate_t * __ps, locale_t __l) {
77+ inline _LIBCPP_HIDE_FROM_ABI size_t
78+ __libcpp_mbrlen_l (const char * __s, size_t __n, mbstate_t * __ps, __libcpp_locale_t __l) {
7679 __libcpp_locale_guard __current (__l);
7780 return mbrlen (__s, __n, __ps);
7881}
7982#endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
8083
81- inline _LIBCPP_HIDE_FROM_ABI lconv* __libcpp_localeconv_l (locale_t __l) {
84+ inline _LIBCPP_HIDE_FROM_ABI lconv* __libcpp_localeconv_l (__libcpp_locale_t __l) {
8285 __libcpp_locale_guard __current (__l);
8386 return localeconv ();
8487}
8588
8689#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
8790inline _LIBCPP_HIDE_FROM_ABI size_t
88- __libcpp_mbsrtowcs_l (wchar_t * __dest, const char ** __src, size_t __len, mbstate_t * __ps, locale_t __l) {
91+ __libcpp_mbsrtowcs_l (wchar_t * __dest, const char ** __src, size_t __len, mbstate_t * __ps, __libcpp_locale_t __l) {
8992 __libcpp_locale_guard __current (__l);
9093 return mbsrtowcs (__dest, __src, __len, __ps);
9194}
9295#endif
9396
9497inline _LIBCPP_ATTRIBUTE_FORMAT (__printf__, 4 , 5 ) int __libcpp_snprintf_l(
95- char * __s, size_t __n, locale_t __l, const char * __format, ...) {
98+ char * __s, size_t __n, __libcpp_locale_t __l, const char * __format, ...) {
9699 va_list __va;
97100 va_start (__va, __format);
98101 __libcpp_locale_guard __current (__l);
@@ -102,7 +105,7 @@ inline _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 4, 5) int __libcpp_snprintf_l(
102105}
103106
104107inline _LIBCPP_ATTRIBUTE_FORMAT (__printf__, 3 , 4 ) int __libcpp_asprintf_l(
105- char ** __s, locale_t __l, const char * __format, ...) {
108+ char ** __s, __libcpp_locale_t __l, const char * __format, ...) {
106109 va_list __va;
107110 va_start (__va, __format);
108111 __libcpp_locale_guard __current (__l);
@@ -112,7 +115,7 @@ inline _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 3, 4) int __libcpp_asprintf_l(
112115}
113116
114117inline _LIBCPP_ATTRIBUTE_FORMAT (__scanf__, 3 , 4 ) int __libcpp_sscanf_l(
115- const char * __s, locale_t __l, const char * __format, ...) {
118+ const char * __s, __libcpp_locale_t __l, const char * __format, ...) {
116119 va_list __va;
117120 va_start (__va, __format);
118121 __libcpp_locale_guard __current (__l);
0 commit comments