Verify an assumption.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Dec 2008 11:54:07 +0000 (12:54 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Dec 2008 11:54:07 +0000 (12:54 +0100)
ChangeLog
lib/mbrtowc.c
modules/mbrtowc

index a7a3c31..f8fa73c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbrtowc.c: Include verify.h. Verify an assumption.
+       * modules/mbrtowc (Depends-on): Add verify.
+       Suggested by Paul Eggert.
+
 2008-12-18  Bruno Haible  <bruno@clisp.org>
 
        * modules/mbsinit-tests: New file.
index f84cd17..e5ae0bc 100644 (file)
 
 #include "localcharset.h"
 #include "streq.h"
+#include "verify.h"
 
 
+verify (sizeof (mbstate_t) >= 4);
+
 static char internal_state[4];
 
 size_t
index 0965b21..be1ff35 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 wchar
 localcharset
 streq
+verify
 
 configure.ac:
 gl_FUNC_MBRTOWC