Home | History | Annotate | Download | only in m4

Lines Matching full:mbrtowc

0 # mbrtowc.m4 serial 16
16 AC_CHECK_FUNCS_ONCE([mbrtowc])
27 [Define if the mbrtowc function has the NULL string argument bug.])
34 [Define if the mbrtowc function returns a wrong return value.])
41 [Define if the mbrtowc function does not return 0 for a NUL character.])
48 AC_LIBOBJ([mbrtowc])
53 dnl Test whether mbsinit() and mbrtowc() need to be overridden in a way that
56 dnl When this is set to 1, we replace both mbsinit() and mbrtowc(), in order to
65 AC_CHECK_FUNCS_ONCE([mbrtowc])
86 dnl Test whether mbrtowc puts the state into non-initial state when parsing an
95 AC_CACHE_CHECK([whether mbrtowc handles incomplete characters],
122 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
135 dnl Test whether mbrtowc works not worse than mbtowc.
143 AC_CACHE_CHECK([whether mbrtowc works as well as mbtowc],
165 mbrtowc returns 2, and sets wc to 0x00F0.
174 if (mbrtowc (&wc, input + 3, 6, &state) != 4
187 dnl Test whether mbrtowc supports a NULL string argument correctly.
195 AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument],
223 mbrtowc (&wc, NULL, 5, &state);
234 dnl Test whether mbrtowc, when parsing the end of a multibyte character,
245 AC_CACHE_CHECK([whether mbrtowc has a correct return value],
273 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
276 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
288 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
291 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
304 dnl Test whether mbrtowc, when parsing a NUL character, correctly returns 0.
312 AC_CACHE_CHECK([whether mbrtowc returns 0 when parsing a NUL character],
339 if (mbrtowc (&wc, "", 1, &state) != 0)
351 # Prerequisites of lib/mbrtowc.c.
366 AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
375 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));]])],
380 [Define to 1 if mbrtowc and mbstate_t are properly declared.])