+2008-12-17 Bruno Haible <bruno@clisp.org>
+
+ * lib/mbsinit.c: Include verify.h. Verify an assumption.
+ * modules/mbsinit (Depends-on): Add verify.
+ Suggested by Paul Eggert.
+
2008-12-17 Bruno Haible <bruno@clisp.org>
* m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
/* Specification. */
#include <wchar.h>
+#include "verify.h"
+
/* Platforms that lack mbsinit() also lack mbrlen(), mbrtowc(), mbsrtowcs()
and wcrtomb(), wcsrtombs().
We assume that
- In wc -> mb direction, mbstate_t contains no information. In other
words, it is always in the initial state. */
+verify (sizeof (mbstate_t) >= 4);
+
int
mbsinit (const mbstate_t *ps)
{