Paul Eggert wrote:
> How about adding a "verify (sizeof (mbstate_t) >= 4);" so that this
> assumption is checked by the compiler?
I'm adding this verification also to mbrtowc:
2008-12-19 Bruno Haible
* lib/mbrtowc.c: Include verify.h. Verify an assumption.
* modules/mbrtowc (D
This fixes a nit in the two new modules: They need to activate the
replacement. Noticed on IRIX 6.5.
2008-12-18 Bruno Haible
* m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
* m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
--- m4/mbsinit.m4.orig 2008-12-19 02:55:18.
Hey Paul!
Paul Eggert wrote:
> If I understand things correctly, this code is hijacking the underlying
> system's mbstate_t type and using it for its own purposes? The idea
> being that other gnulib code will be consistent with this?
Yes, this is so. There is a comment that explains it: On these
Bruno Haible writes:
> int
> mbsinit (const mbstate_t *ps)
> {
> const char *pstate = (const char *)ps;
>
> return pstate[0] == 0;
> }
If I understand things correctly, this code is hijacking the underlying
system's mbstate_t type and using it for its own purposes? The idea
being that other
I'm starting to add support for ISO C 99 multibyte / wide character functions,
for systems such as HP-UX 11, IRIX 6.5, Solaris 2.6.
The first module is 'mbsinit'.
2008-12-17 Bruno Haible
New module 'mbsinit'.
* lib/wchar.in.h (mbsinit): New d