2002-11-19 Bruno Haible <bruno@clisp.org>
+ * mbswidth.c: Include mbswidth.h right at the beginning.
+ * mbswidth.h: Include <stddef.h>, for size_t.
+
* mbswidth.h (PARAMS): Remove macro.
(mbswidth, mbsnwidth): Use ANSI C function declarations.
* mbswidth.c (mbswidth, mbsnwidth): Likewise.
# include <config.h>
#endif
+/* Specification. */
+#include "mbswidth.h"
+
/* Get MB_CUR_MAX. */
#include <stdlib.h>
#undef ISCNTRL
#define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c))
-#include "mbswidth.h"
-
/* Returns the number of columns needed to represent the multibyte
character string pointed to by STRING. If a non-printable character
occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned.
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#include <stddef.h>
+
/* Optional flags to influence mbswidth/mbsnwidth behavior. */
/* If this bit is set, return -1 upon finding an invalid or incomplete