Home | History | Annotate | Download | only in m4

Lines Matching full:mbrtowc

0 # mbrtowc.m4 serial 25
15 AC_CHECK_FUNCS_ONCE([mbrtowc])
18 AC_CHECK_DECLS([mbrtowc],,, [[
29 dnl On Minix 3.1.8, the system's <wchar.h> declares mbrtowc() although
45 [Define if the mbrtowc function has the NULL pwc argument bug.])
52 [Define if the mbrtowc function has the NULL string argument bug.])
59 [Define if the mbrtowc function returns a wrong return value.])
66 [Define if the mbrtowc function does not return 0 for a NUL character.])
74 dnl Test whether mbsinit() and mbrtowc() need to be overridden in a way that
77 dnl When this is set to 1, we replace both mbsinit() and mbrtowc(), in order to
86 AC_CHECK_FUNCS_ONCE([mbrtowc])
104 dnl Test whether mbrtowc puts the state into non-initial state when parsing an
113 AC_CACHE_CHECK([whether mbrtowc handles incomplete characters],
148 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
161 dnl Test whether mbrtowc works not worse than mbtowc.
169 AC_CACHE_CHECK([whether mbrtowc works as well as mbtowc],
199 mbrtowc returns 2, and sets wc to 0x00F0.
208 if (mbrtowc (&wc, input + 3, 6, &state) != 4
221 dnl Test whether mbrtowc supports a NULL pwc argument correctly.
229 AC_CACHE_CHECK([whether mbrtowc handles a NULL pwc argument],
269 ret = mbrtowc (&wc, input, 5, &state);
276 ret = mbrtowc (NULL, input, 5, &state);
291 dnl Test whether mbrtowc supports a NULL string argument correctly.
299 AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument],
335 mbrtowc (&wc, NULL, 5, &state);
349 dnl Test whether mbrtowc, when parsing the end of a multibyte character,
360 AC_CACHE_CHECK([whether mbrtowc has a correct return value],
399 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
402 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
415 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
418 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
431 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
434 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
446 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
449 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
461 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
464 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
481 dnl Test whether mbrtowc, when parsing a NUL character, correctly returns 0.
489 AC_CACHE_CHECK([whether mbrtowc returns 0 when parsing a NUL character],
524 if (mbrtowc (&wc, "", 1, &state) != 0)
536 # Prerequisites of lib/mbrtowc.c.
549 AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
565 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));]])],
570 [Define to 1 if mbrtowc and mbstate_t are properly declared.])