or to WEOF if C is invalid. */
#if @GNULIB_BTOC32@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_BTOC32
+# if !GNULIB_defined_btoc32
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ATTRIBUTE_PURE wint_t
btoc32 (int c)
{
return
-# if @GNULIB_BTOWC@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_BTOWC@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
btowc (c);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_btoc32 1
+# endif
# else
_GL_FUNCDECL_SYS (btoc32, wint_t, (int c), _GL_ATTRIBUTE_PURE);
# endif
/* Test a specific property of a 32-bit wide character. */
#if @GNULIB_C32ISALNUM@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISALNUM
+# if !GNULIB_defined_c32isalnum
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isalnum (wint_t wc)
iswalnum (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isalnum 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isalnum, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISALPHA@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISALPHA
+# if !GNULIB_defined_c32isalpha
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isalpha (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswalpha (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isalpha 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isalpha, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISBLANK@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISBLANK
+# if !GNULIB_defined_c32isblank
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isblank (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswblank (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isblank 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isblank, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISCNTRL@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISCNTRL
+# if !GNULIB_defined_c32iscntrl
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32iscntrl (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswcntrl (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32iscntrl 1
+# endif
# else
_GL_FUNCDECL_SYS (c32iscntrl, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISDIGIT@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISDIGIT
+# if !GNULIB_defined_c32isdigit
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isdigit (wint_t wc)
{
return
-# if @GNULIB_ISWDIGIT@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_ISWDIGIT@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswdigit (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isdigit 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isdigit, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISGRAPH@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISGRAPH
+# if !GNULIB_defined_c32isgraph
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isgraph (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswgraph (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isgraph 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isgraph, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISLOWER@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISLOWER
+# if !GNULIB_defined_c32islower
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32islower (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswlower (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32islower 1
+# endif
# else
_GL_FUNCDECL_SYS (c32islower, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISPRINT@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISPRINT
+# if !GNULIB_defined_c32isprint
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isprint (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswprint (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isprint 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isprint, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISPUNCT@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISPUNCT
+# if !GNULIB_defined_c32ispunct
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32ispunct (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswpunct (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32ispunct 1
+# endif
# else
_GL_FUNCDECL_SYS (c32ispunct, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISSPACE@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISSPACE
+# if !GNULIB_defined_c32isspace
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isspace (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswspace (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isspace 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isspace, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISUPPER@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISUPPER
+# if !GNULIB_defined_c32isupper
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isupper (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswupper (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isupper 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isupper, int, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32ISXDIGIT@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32ISXDIGIT
+# if !GNULIB_defined_c32isxdigit
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32isxdigit (wint_t wc)
{
return
-# if @GNULIB_ISWXDIGIT@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_ISWXDIGIT@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswxdigit (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32isxdigit 1
+# endif
# else
_GL_FUNCDECL_SYS (c32isxdigit, int, (wint_t wc), );
# endif
/* Case mapping of a 32-bit wide character. */
#if @GNULIB_C32TOLOWER@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32TOLOWER
+# if !GNULIB_defined_c32tolower
_GL_BEGIN_C_LINKAGE
_GL_INLINE wint_t
c32tolower (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
towlower (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32tolower 1
+# endif
# else
_GL_FUNCDECL_SYS (c32tolower, wint_t, (wint_t wc), );
# endif
#endif
#if @GNULIB_C32TOUPPER@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32TOUPPER
+# if !GNULIB_defined_c32toupper
_GL_BEGIN_C_LINKAGE
_GL_INLINE wint_t
c32toupper (wint_t wc)
{
return
-# if defined __cplusplus && defined GNULIB_NAMESPACE
+# if defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
towupper (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32toupper 1
+# endif
# else
_GL_FUNCDECL_SYS (c32toupper, wint_t, (wint_t wc), );
# endif
/* Number of screen columns needed for a 32-bit wide character. */
#if @GNULIB_C32WIDTH@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32WIDTH
+# if !GNULIB_defined_c32width
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32width (char32_t wc)
{
return
-# if @GNULIB_WCWIDTH@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCWIDTH@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wcwidth (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32width 1
+# endif
# else
_GL_FUNCDECL_SYS (c32width, int, (char32_t wc), );
# endif
/* Convert a 32-bit wide string to a string. */
#if @GNULIB_C32SNRTOMBS@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32SNRTOMBS
+# if !GNULIB_defined_c32snrtombs
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) size_t
c32snrtombs (char *dest, const char32_t **srcp, size_t srclen, size_t len,
mbstate_t *ps)
{
return
-# if @GNULIB_WCSNRTOMBS@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCSNRTOMBS@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wcsnrtombs (dest, (const wchar_t **) srcp, srclen, len, ps);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32snrtombs 1
+# endif
# else
_GL_FUNCDECL_SYS (c32snrtombs, size_t,
(char *dest, const char32_t **srcp, size_t srclen, size_t len,
/* Convert a 32-bit wide string to a string. */
#if @GNULIB_C32SRTOMBS@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32SRTOMBS
+# if !GNULIB_defined_c32srtombs
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) size_t
c32srtombs (char *dest, const char32_t **srcp, size_t len, mbstate_t *ps)
{
return
-# if @GNULIB_WCSRTOMBS@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCSRTOMBS@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wcsrtombs (dest, (const wchar_t **) srcp, len, ps);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32srtombs 1
+# endif
# else
_GL_FUNCDECL_SYS (c32srtombs, size_t,
(char *dest, const char32_t **srcp, size_t len,
/* Convert a 32-bit wide string to a string. */
#if @GNULIB_C32STOMBS@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32STOMBS
+# if !GNULIB_defined_c32stombs
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) size_t
c32stombs (char *dest, const char32_t *src, size_t len)
return c32srtombs (dest, &src, len, &state);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32stombs 1
+# endif
# else
_GL_FUNCDECL_SYS (c32stombs, size_t,
(char *dest, const char32_t *src, size_t len),
/* Number of screen columns needed for a size-bounded 32-bit wide string. */
#if @GNULIB_C32SWIDTH@
# if (_GL_WCHAR_T_IS_UCS4 && !GNULIB_defined_mbstate_t) && !defined IN_C32SWIDTH
+# if !GNULIB_defined_c32swidth
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((1)) int
c32swidth (const char32_t *s, size_t n)
{
return
-# if @GNULIB_WCSWIDTH@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCSWIDTH@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wcswidth ((const wchar_t *) s, n);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32swidth 1
+# endif
# else
_GL_FUNCDECL_SYS (c32swidth, int, (const char32_t *s, size_t n),
_GL_ARG_NONNULL ((1)));
or EOF otherwise. */
#if @GNULIB_C32TOB@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32TOB
+# if !GNULIB_defined_c32tob
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32tob (wint_t wc)
{
return
-# if @GNULIB_WCTOB@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCTOB@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wctob (wc);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32tob 1
+# endif
# else
_GL_FUNCDECL_SYS (c32tob, int, (wint_t wc), );
# endif
/* Convert a string to a 32-bit wide string. */
#if @GNULIB_MBSNRTOC32S@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_MBSNRTOC32S
+# if !GNULIB_defined_mbsnrtoc32s
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) size_t
mbsnrtoc32s (char32_t *dest, const char **srcp, size_t srclen, size_t len,
mbstate_t *ps)
{
return
-# if @GNULIB_MBSNRTOWCS@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_MBSNRTOWCS@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
mbsnrtowcs ((wchar_t *) dest, srcp, srclen, len, ps);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_mbsnrtoc32s 1
+# endif
# else
_GL_FUNCDECL_SYS (mbsnrtoc32s, size_t,
(char32_t *dest, const char **srcp, size_t srclen, size_t len,
/* Convert a string to a 32-bit wide string. */
#if @GNULIB_MBSRTOC32S@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_MBSRTOC32S
+# if !GNULIB_defined_mbsrtoc32s
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) size_t
mbsrtoc32s (char32_t *dest, const char **srcp, size_t len, mbstate_t *ps)
{
return
-# if @GNULIB_MBSRTOWCS@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_MBSRTOWCS@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
mbsrtowcs ((wchar_t *) dest, srcp, len, ps);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_mbsrtoc32s 1
+# endif
# else
_GL_FUNCDECL_SYS (mbsrtoc32s, size_t,
(char32_t *dest, const char **srcp, size_t len,
/* Convert a string to a 32-bit wide string. */
#if @GNULIB_MBSTOC32S@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_MBSTOC32S
+# if !GNULIB_defined_mbstoc32s
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) size_t
mbstoc32s (char32_t *dest, const char *src, size_t len)
return mbsrtoc32s (dest, &src, len, &state);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_mbstoc32s 1
+# endif
# else
_GL_FUNCDECL_SYS (mbstoc32s, size_t,
(char32_t *dest, const char *src, size_t len),
*/
#if @GNULIB_C32_GET_TYPE_TEST@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32_GET_TYPE_TEST
+# if !GNULIB_defined_c32_get_type_test
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((1)) c32_type_test_t
c32_get_type_test (const char *name)
{
return
-# if @GNULIB_WCTYPE@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCTYPE@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wctype (name);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32_get_type_test 1
+# endif
# else
_GL_FUNCDECL_SYS (c32_get_type_test, c32_type_test_t, (const char *name),
_GL_ARG_NONNULL ((1)));
#if @GNULIB_C32_APPLY_TYPE_TEST@
# if _GL_WCHAR_T_IS_UCS4
# if !defined IN_C32_APPLY_TYPE_TEST
+# if !GNULIB_defined_c32_apply_type_test
_GL_BEGIN_C_LINKAGE
_GL_INLINE int
c32_apply_type_test (wint_t wc, c32_type_test_t property)
{
return
-# if @GNULIB_ISWCTYPE@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_ISWCTYPE@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
iswctype (wc, property);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32_apply_type_test 1
+# endif
# else
_GL_FUNCDECL_SYS (c32_apply_type_test, int,
(wint_t wc, c32_type_test_t property), );
*/
#if @GNULIB_C32_GET_MAPPING@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32_GET_MAPPING
+# if !GNULIB_defined_c32_get_mapping
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((1)) c32_mapping_t
c32_get_mapping (const char *name)
{
return
-# if @GNULIB_WCTRANS@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_WCTRANS@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
wctrans (name);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32_get_mapping 1
+# endif
# else
_GL_FUNCDECL_SYS (c32_get_mapping, c32_mapping_t, (const char *name),
_GL_ARG_NONNULL ((1)));
*/
#if @GNULIB_C32_APPLY_MAPPING@
# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32_APPLY_MAPPING
+# if !GNULIB_defined_c32_apply_mapping
_GL_BEGIN_C_LINKAGE
_GL_INLINE _GL_ARG_NONNULL ((2)) wint_t
c32_apply_mapping (wint_t wc, c32_mapping_t mapping)
{
return
-# if @GNULIB_TOWCTRANS@ && defined __cplusplus && defined GNULIB_NAMESPACE
+# if @GNULIB_TOWCTRANS@ && defined __cplusplus && defined GNULIB_NAMESPACE
GNULIB_NAMESPACE::
-# endif
+# endif
towctrans (wc, mapping);
}
_GL_END_C_LINKAGE
+# define GNULIB_defined_c32_apply_mapping 1
+# endif
# else
_GL_FUNCDECL_SYS (c32_apply_mapping, wint_t,
(wint_t wc, c32_mapping_t mapping),