annotate libcxx/include/__bsd_locale_defaults.h @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // -*- C++ -*-
anatofuz
parents:
diff changeset
2 //===---------------------- __bsd_locale_defaults.h -----------------------===//
anatofuz
parents:
diff changeset
3 //
anatofuz
parents:
diff changeset
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
5 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
7 //
anatofuz
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
9 // The BSDs have lots of *_l functions. We don't want to define those symbols
anatofuz
parents:
diff changeset
10 // on other platforms though, for fear of conflicts with user code. So here,
anatofuz
parents:
diff changeset
11 // we will define the mapping from an internal macro to the real BSD symbol.
anatofuz
parents:
diff changeset
12 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 #ifndef _LIBCPP_BSD_LOCALE_DEFAULTS_H
anatofuz
parents:
diff changeset
15 #define _LIBCPP_BSD_LOCALE_DEFAULTS_H
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
anatofuz
parents:
diff changeset
18 #pragma GCC system_header
anatofuz
parents:
diff changeset
19 #endif
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 #define __libcpp_mb_cur_max_l(loc) MB_CUR_MAX_L(loc)
anatofuz
parents:
diff changeset
22 #define __libcpp_btowc_l(ch, loc) btowc_l(ch, loc)
anatofuz
parents:
diff changeset
23 #define __libcpp_wctob_l(wch, loc) wctob_l(wch, loc)
anatofuz
parents:
diff changeset
24 #define __libcpp_wcsnrtombs_l(dst, src, nwc, len, ps, loc) wcsnrtombs_l(dst, src, nwc, len, ps, loc)
anatofuz
parents:
diff changeset
25 #define __libcpp_wcrtomb_l(src, wc, ps, loc) wcrtomb_l(src, wc, ps, loc)
anatofuz
parents:
diff changeset
26 #define __libcpp_mbsnrtowcs_l(dst, src, nms, len, ps, loc) mbsnrtowcs_l(dst, src, nms, len, ps, loc)
anatofuz
parents:
diff changeset
27 #define __libcpp_mbrtowc_l(pwc, s, n, ps, l) mbrtowc_l(pwc, s, n, ps, l)
anatofuz
parents:
diff changeset
28 #define __libcpp_mbtowc_l(pwc, pmb, max, l) mbtowc_l(pwc, pmb, max, l)
anatofuz
parents:
diff changeset
29 #define __libcpp_mbrlen_l(s, n, ps, l) mbrlen_l(s, n, ps, l)
anatofuz
parents:
diff changeset
30 #define __libcpp_localeconv_l(l) localeconv_l(l)
anatofuz
parents:
diff changeset
31 #define __libcpp_mbsrtowcs_l(dest, src, len, ps, l) mbsrtowcs_l(dest, src, len, ps, l)
anatofuz
parents:
diff changeset
32 #define __libcpp_snprintf_l(...) snprintf_l(__VA_ARGS__)
anatofuz
parents:
diff changeset
33 #define __libcpp_asprintf_l(...) asprintf_l(__VA_ARGS__)
anatofuz
parents:
diff changeset
34 #define __libcpp_sscanf_l(...) sscanf_l(__VA_ARGS__)
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 #endif // _LIBCPP_BSD_LOCALE_DEFAULTS_H