lib/mbswidth.c


Log

Author Commit Date CI Message
Bruno Haible c9075658 2002-11-19T13:58:18 Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible a798bae4 2002-11-19T13:48:57 Move to ANSI C.
Jim Meyering 5c32f025 2001-08-04T17:07:37 Don't include <limits.h>. Include <stdlib.h> and <string.h> unconditionally. (iswcntrl, mbsinit, ISCNTRL): New macros. (mbsnwidth): Use K&R style function declarations. Don't bother checking for MB_LEN_MAX == 1, since the compiler can optimize it when MB_CUR_MAX == 1. The width of control characters is zero, not 1.
Jim Meyering db5283c7 2001-02-17T10:39:17 (mbrtowc, mbsinit): Remove workaround macros for hosts that have mbrtowc but not mbstate_t, as we now insist on proper declarations for both before using mbrtowc.
Jim Meyering 1dce3d25 2000-12-08T18:31:38 (mbsnwidth): Don't loop endlessly when called with an invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
Jim Meyering 3bd332e0 2000-09-09T15:56:26 Rename ISASCII to IN_CTYPE_DOMAIN.
Jim Meyering d13720cf 2000-07-24T16:29:57 (mbswidth): Add a flags argument. (mbsnwidth): New function.
Jim Meyering ec482f5c 2000-07-24T06:41:58 (_XOPEN_SOURCE): Don't define; this causes problems on Solaris 7. (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
Jim Meyering f2c15d34 2000-07-17T20:42:12 from Bruno Haible.