29 @PRAGMA_SYSTEM_HEADER@
33 #if (((defined __need_mbstate_t || defined __need_wint_t) \ 34 && !defined __MINGW32__) \ 36 && ((defined _INTTYPES_INCLUDED && !defined strtoimax) \ 37 || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \ 38 || (defined __MINGW32__ && defined __STRING_H_SOURCED__) \ 39 || defined _GL_ALREADY_INCLUDING_WCHAR_H) 54 #@INCLUDE_NEXT@ @NEXT_WCHAR_H@ 59 #ifndef _@GUARD_PREFIX@_WCHAR_H 61 #define _GL_ALREADY_INCLUDING_WCHAR_H 64 # include <features.h> 74 #if !(defined __GLIBC__ && !defined __UCLIBC__) 86 # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ 89 #undef _GL_ALREADY_INCLUDING_WCHAR_H 91 #ifndef _@GUARD_PREFIX@_WCHAR_H 92 #define _@GUARD_PREFIX@_WCHAR_H 96 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) 97 # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 99 # define _GL_ATTRIBUTE_PURE 110 #if !@HAVE_WINT_T@ && !defined wint_t 119 # if @GNULIB_OVERRIDES_WINT_T@ 120 # if !GNULIB_defined_wint_t 121 # if @HAVE_CRTDEFS_H@ 122 # include <crtdefs.h> 126 typedef unsigned int rpl_wint_t;
128 # define wint_t rpl_wint_t 129 # define GNULIB_defined_wint_t 1 133 # define WEOF ((wint_t) -1) 141 #if !(@HAVE_MBSINIT@ && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@ 142 # if !GNULIB_defined_mbstate_t 145 # define mbstate_t rpl_mbstate_t 146 # define GNULIB_defined_mbstate_t 1 154 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 156 # define btowc rpl_btowc 167 #elif defined GNULIB_POSIXCHECK 169 # if HAVE_RAW_DECL_BTOWC 171 "use gnulib module btowc for portability");
179 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 181 # define wctob rpl_wctob 186 # if !defined wctob && !@HAVE_DECL_WCTOB@ 193 #elif defined GNULIB_POSIXCHECK 195 # if HAVE_RAW_DECL_WCTOB 197 "use gnulib module wctob for portability");
204 # if @REPLACE_MBSINIT@ 205 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 207 # define mbsinit rpl_mbsinit 218 #elif defined GNULIB_POSIXCHECK 220 # if HAVE_RAW_DECL_MBSINIT 222 "use gnulib module mbsinit for portability");
229 # if @REPLACE_MBRTOWC@ 230 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 232 # define mbrtowc rpl_mbrtowc 235 (
wchar_t *pwc,
const char *s,
size_t n,
mbstate_t *ps));
237 (
wchar_t *pwc,
const char *s,
size_t n,
mbstate_t *ps));
241 (
wchar_t *pwc,
const char *s,
size_t n,
mbstate_t *ps));
244 (
wchar_t *pwc,
const char *s,
size_t n,
mbstate_t *ps));
247 #elif defined GNULIB_POSIXCHECK 249 # if HAVE_RAW_DECL_MBRTOWC 251 "use gnulib module mbrtowc for portability");
258 # if @REPLACE_MBRLEN@ 259 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 261 # define mbrlen rpl_mbrlen 272 #elif defined GNULIB_POSIXCHECK 274 # if HAVE_RAW_DECL_MBRLEN 276 "use gnulib module mbrlen for portability");
282 #if @GNULIB_MBSRTOWCS@ 283 # if @REPLACE_MBSRTOWCS@ 284 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 286 # define mbsrtowcs rpl_mbsrtowcs 289 (
wchar_t *dest,
const char **srcp,
size_t len,
mbstate_t *ps)
292 (
wchar_t *dest,
const char **srcp,
size_t len,
295 # if !@HAVE_MBSRTOWCS@ 297 (
wchar_t *dest,
const char **srcp,
size_t len,
mbstate_t *ps)
301 (
wchar_t *dest,
const char **srcp,
size_t len,
305 #elif defined GNULIB_POSIXCHECK 307 # if HAVE_RAW_DECL_MBSRTOWCS 309 "use gnulib module mbsrtowcs for portability");
315 #if @GNULIB_MBSNRTOWCS@ 316 # if @REPLACE_MBSNRTOWCS@ 317 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 319 # define mbsnrtowcs rpl_mbsnrtowcs 322 (
wchar_t *dest,
const char **srcp,
size_t srclen,
size_t len,
326 (
wchar_t *dest,
const char **srcp,
size_t srclen,
size_t len,
329 # if !@HAVE_MBSNRTOWCS@ 331 (
wchar_t *dest,
const char **srcp,
size_t srclen,
size_t len,
336 (
wchar_t *dest,
const char **srcp,
size_t srclen,
size_t len,
340 #elif defined GNULIB_POSIXCHECK 342 # if HAVE_RAW_DECL_MBSNRTOWCS 344 "use gnulib module mbsnrtowcs for portability");
351 # if @REPLACE_WCRTOMB@ 352 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 354 # define wcrtomb rpl_wcrtomb 365 #elif defined GNULIB_POSIXCHECK 367 # if HAVE_RAW_DECL_WCRTOMB 369 "use gnulib module wcrtomb for portability");
375 #if @GNULIB_WCSRTOMBS@ 376 # if @REPLACE_WCSRTOMBS@ 377 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 379 # define wcsrtombs rpl_wcsrtombs 382 (
char *dest,
const wchar_t **srcp,
size_t len,
mbstate_t *ps)
385 (
char *dest,
const wchar_t **srcp,
size_t len,
388 # if !@HAVE_WCSRTOMBS@ 390 (
char *dest,
const wchar_t **srcp,
size_t len,
mbstate_t *ps)
394 (
char *dest,
const wchar_t **srcp,
size_t len,
398 #elif defined GNULIB_POSIXCHECK 400 # if HAVE_RAW_DECL_WCSRTOMBS 402 "use gnulib module wcsrtombs for portability");
408 #if @GNULIB_WCSNRTOMBS@ 409 # if @REPLACE_WCSNRTOMBS@ 410 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 412 # define wcsnrtombs rpl_wcsnrtombs 415 (
char *dest,
const wchar_t **srcp,
size_t srclen,
size_t len,
419 (
char *dest,
const wchar_t **srcp,
size_t srclen,
size_t len,
422 # if !@HAVE_WCSNRTOMBS@ 424 (
char *dest,
const wchar_t **srcp,
size_t srclen,
size_t len,
429 (
char *dest,
const wchar_t **srcp,
size_t srclen,
size_t len,
433 #elif defined GNULIB_POSIXCHECK 435 # if HAVE_RAW_DECL_WCSNRTOMBS 437 "use gnulib module wcsnrtombs for portability");
444 # if @REPLACE_WCWIDTH@ 445 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 447 # define wcwidth rpl_wcwidth 452 # if !@HAVE_DECL_WCWIDTH@ 459 #elif defined GNULIB_POSIXCHECK 461 # if HAVE_RAW_DECL_WCWIDTH 463 "use gnulib module wcwidth for portability");
471 _GL_FUNCDECL_SYS (wmemchr,
wchar_t *, (
const wchar_t *s,
wchar_t c,
size_t n)
480 wchar_t *, (
const wchar_t *,
wchar_t,
size_t),
481 const wchar_t *, (
const wchar_t *,
wchar_t,
size_t));
482 # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ 483 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 486 (
const wchar_t *s,
wchar_t c,
size_t n));
490 #elif defined GNULIB_POSIXCHECK 492 # if HAVE_RAW_DECL_WMEMCHR 494 "use gnulib module wmemchr for portability");
503 (
const wchar_t *s1,
const wchar_t *s2,
size_t n)
507 (
const wchar_t *s1,
const wchar_t *s2,
size_t n));
509 #elif defined GNULIB_POSIXCHECK 511 # if HAVE_RAW_DECL_WMEMCMP 513 "use gnulib module wmemcmp for portability");
522 (
wchar_t *dest,
const wchar_t *src,
size_t n));
525 (
wchar_t *dest,
const wchar_t *src,
size_t n));
527 #elif defined GNULIB_POSIXCHECK 529 # if HAVE_RAW_DECL_WMEMCPY 531 "use gnulib module wmemcpy for portability");
538 #if @GNULIB_WMEMMOVE@ 539 # if !@HAVE_WMEMMOVE@ 541 (
wchar_t *dest,
const wchar_t *src,
size_t n));
544 (
wchar_t *dest,
const wchar_t *src,
size_t n));
546 #elif defined GNULIB_POSIXCHECK 548 # if HAVE_RAW_DECL_WMEMMOVE 550 "use gnulib module wmemmove for portability");
562 #elif defined GNULIB_POSIXCHECK 564 # if HAVE_RAW_DECL_WMEMSET 566 "use gnulib module wmemset for portability");
578 #elif defined GNULIB_POSIXCHECK 580 # if HAVE_RAW_DECL_WCSLEN 582 "use gnulib module wcslen for portability");
595 #elif defined GNULIB_POSIXCHECK 597 # if HAVE_RAW_DECL_WCSNLEN 599 "use gnulib module wcsnlen for portability");
611 #elif defined GNULIB_POSIXCHECK 613 # if HAVE_RAW_DECL_WCSCPY 615 "use gnulib module wcscpy for portability");
627 #elif defined GNULIB_POSIXCHECK 629 # if HAVE_RAW_DECL_WCPCPY 631 "use gnulib module wcpcpy for portability");
640 (
wchar_t *dest,
const wchar_t *src,
size_t n));
643 (
wchar_t *dest,
const wchar_t *src,
size_t n));
645 #elif defined GNULIB_POSIXCHECK 647 # if HAVE_RAW_DECL_WCSNCPY 649 "use gnulib module wcsncpy for portability");
659 (
wchar_t *dest,
const wchar_t *src,
size_t n));
662 (
wchar_t *dest,
const wchar_t *src,
size_t n));
664 #elif defined GNULIB_POSIXCHECK 666 # if HAVE_RAW_DECL_WCPNCPY 668 "use gnulib module wcpncpy for portability");
680 #elif defined GNULIB_POSIXCHECK 682 # if HAVE_RAW_DECL_WCSCAT 684 "use gnulib module wcscat for portability");
693 (
wchar_t *dest,
const wchar_t *src,
size_t n));
696 (
wchar_t *dest,
const wchar_t *src,
size_t n));
698 #elif defined GNULIB_POSIXCHECK 700 # if HAVE_RAW_DECL_WCSNCAT 702 "use gnulib module wcsncat for portability");
715 #elif defined GNULIB_POSIXCHECK 717 # if HAVE_RAW_DECL_WCSCMP 719 "use gnulib module wcscmp for portability");
728 (
const wchar_t *s1,
const wchar_t *s2,
size_t n)
732 (
const wchar_t *s1,
const wchar_t *s2,
size_t n));
734 #elif defined GNULIB_POSIXCHECK 736 # if HAVE_RAW_DECL_WCSNCMP 738 "use gnulib module wcsncmp for portability");
744 #if @GNULIB_WCSCASECMP@ 745 # if !@HAVE_WCSCASECMP@ 751 #elif defined GNULIB_POSIXCHECK 753 # if HAVE_RAW_DECL_WCSCASECMP 755 "use gnulib module wcscasecmp for portability");
761 #if @GNULIB_WCSNCASECMP@ 762 # if !@HAVE_WCSNCASECMP@ 764 (
const wchar_t *s1,
const wchar_t *s2,
size_t n)
768 (
const wchar_t *s1,
const wchar_t *s2,
size_t n));
770 #elif defined GNULIB_POSIXCHECK 772 # if HAVE_RAW_DECL_WCSNCASECMP 774 "use gnulib module wcsncasecmp for portability");
787 #elif defined GNULIB_POSIXCHECK 789 # if HAVE_RAW_DECL_WCSCOLL 791 "use gnulib module wcscoll for portability");
801 _GL_FUNCDECL_SYS (wcsxfrm,
size_t, (
wchar_t *s1,
const wchar_t *s2,
size_t n));
803 _GL_CXXALIAS_SYS (wcsxfrm,
size_t, (
wchar_t *s1,
const wchar_t *s2,
size_t n));
805 #elif defined GNULIB_POSIXCHECK 807 # if HAVE_RAW_DECL_WCSXFRM 809 "use gnulib module wcsxfrm for portability");
821 #elif defined GNULIB_POSIXCHECK 823 # if HAVE_RAW_DECL_WCSDUP 825 "use gnulib module wcsdup for portability");
842 wchar_t *, (
const wchar_t *,
wchar_t),
843 const wchar_t *, (
const wchar_t *,
wchar_t));
844 # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ 845 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 851 #elif defined GNULIB_POSIXCHECK 853 # if HAVE_RAW_DECL_WCSCHR 855 "use gnulib module wcschr for portability");
872 wchar_t *, (
const wchar_t *,
wchar_t),
873 const wchar_t *, (
const wchar_t *,
wchar_t));
874 # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ 875 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 881 #elif defined GNULIB_POSIXCHECK 883 # if HAVE_RAW_DECL_WCSRCHR 885 "use gnulib module wcsrchr for portability");
894 _GL_FUNCDECL_SYS (wcscspn,
size_t, (
const wchar_t *wcs,
const wchar_t *reject)
897 _GL_CXXALIAS_SYS (wcscspn,
size_t, (
const wchar_t *wcs,
const wchar_t *reject));
899 #elif defined GNULIB_POSIXCHECK 901 # if HAVE_RAW_DECL_WCSCSPN 903 "use gnulib module wcscspn for portability");
912 _GL_FUNCDECL_SYS (wcsspn,
size_t, (
const wchar_t *wcs,
const wchar_t *accept)
915 _GL_CXXALIAS_SYS (wcsspn,
size_t, (
const wchar_t *wcs,
const wchar_t *accept));
917 #elif defined GNULIB_POSIXCHECK 919 # if HAVE_RAW_DECL_WCSSPN 921 "use gnulib module wcsspn for portability");
930 (
const wchar_t *wcs,
const wchar_t *accept)
939 wchar_t *, (
const wchar_t *,
const wchar_t *),
940 const wchar_t *, (
const wchar_t *,
const wchar_t *));
941 # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ 942 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 944 (
wchar_t *wcs,
const wchar_t *accept));
946 (
const wchar_t *wcs,
const wchar_t *accept));
950 #elif defined GNULIB_POSIXCHECK 952 # if HAVE_RAW_DECL_WCSPBRK 954 "use gnulib module wcspbrk for portability");
963 (
const wchar_t *haystack,
const wchar_t *needle)
972 wchar_t *, (
const wchar_t *,
const wchar_t *),
973 const wchar_t *, (
const wchar_t *,
const wchar_t *));
974 # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ 975 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 977 (
wchar_t *haystack,
const wchar_t *needle));
979 (
const wchar_t *haystack,
const wchar_t *needle));
983 #elif defined GNULIB_POSIXCHECK 985 # if HAVE_RAW_DECL_WCSSTR 987 "use gnulib module wcsstr for portability");
996 (
wchar_t *wcs,
const wchar_t *delim,
wchar_t **ptr));
999 (
wchar_t *wcs,
const wchar_t *delim,
wchar_t **ptr));
1001 #elif defined GNULIB_POSIXCHECK 1003 # if HAVE_RAW_DECL_WCSTOK 1005 "use gnulib module wcstok for portability");
1012 #if @GNULIB_WCSWIDTH@ 1013 # if @REPLACE_WCSWIDTH@ 1014 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1016 # define wcswidth rpl_wcswidth 1022 # if !@HAVE_WCSWIDTH@ 1029 #elif defined GNULIB_POSIXCHECK 1031 # if HAVE_RAW_DECL_WCSWIDTH 1033 "use gnulib module wcswidth for portability");
1040 #if @GNULIB_WCSFTIME@ 1041 # if @REPLACE_WCSFTIME@ 1042 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1044 # define wcsftime rpl_wcsftime 1047 const wchar_t *__fmt,
const struct tm *__tp)
1050 const wchar_t *__fmt,
const struct tm *__tp));
1052 # if !@HAVE_WCSFTIME@ 1054 const wchar_t *__fmt,
const struct tm *__tp)
1058 const wchar_t *__fmt,
const struct tm *__tp));
1061 #elif defined GNULIB_POSIXCHECK 1063 # if HAVE_RAW_DECL_WCSFTIME 1065 "use gnulib module wcsftime for portability");
#define mbstate_t
Definition: wchar.in.h:145
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
Definition: inet.h:168
int rpl_mbstate_t
Definition: wchar.in.h:143
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: inet.h:180
#define wint_t
Definition: wchar.in.h:111
#define _GL_CXXALIASWARN(func)
Definition: inet.h:337
#define _GL_CXXALIASWARN1(func, rettype, parameters_and_attributes)
Definition: inet.h:365
#define _GL_ATTRIBUTE_PURE
Definition: wchar.in.h:99
int mbsinit(const mbstate_t *ps)
Definition: mbsinit.c:55
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
Definition: inet.h:253
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
Definition: inet.h:156
#define _GL_CXXALIAS_SYS_CAST2(func, rettype, parameters, rettype2, parameters2)
Definition: inet.h:309
#define _GL_WARN_ON_USE(function, message)
Definition: inet.h:474
#define mbrtowc
Definition: wchar.h:684