lib/mbswidth.c


Log

Author Commit Date CI Message
Bruno Haible 9e8ce574 2007-07-07T20:59:43 Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.
Eric Blake 96f7b7d9 2007-01-16T16:31:23 * modules/fnmatch (Depends-on): Depend on wchar. * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>. * m4/fnmatch.m4: Likewise. * modules/mbchar (Makefile.am): Assume <wchar.h>. * m4/mbchar.m4: Likewise. * modules/mbswidth (Depends-on): Depend on wchar. * lib/mbswidth.c: Assume <wchar.h>. * m4/mbswidth.m4: Likewise. * modules/quotearg (Depends-on): Depend on wchar. * lib/quotearg.c: Assume <wchar.h>. * m4/quotearg.m4: Likewise. * modules/regex (Depends-on): Depend on wchar. * lib/regex_internal.h: Assume <wchar.h>. * m4/regex.m4: Likewise. * modules/stdint (Depends-on): Depend on wchar. * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>. * m4/stdint.m4: Likewise. * tests/test-stdint.c [HAVE_WINT_T]: Likewise. * modules/strftime (Depends-on): Depend on wchar. * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>. * modules/strtol (Depends-on): Depend on wchar. * lib/strtol.c: Assume <wchar.h>. * modules/wcwidth (Depends-on): Depend on wchar. * lib/wcwidth.h: Assume <wchar.h>. * m4/wcwidth.m4: Likewise.
Paul Eggert db844e48 2006-12-27T19:54:25 * lib/mbchar.h: Just include <wctype.h>; the wctype module handles its gotchas now. * lib/mbswidth.c: Likewise. * lib/wcwidth.h: Likewise. * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h and iswcntrl; the wctype module does this stuff now. * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise. * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise. * modules/mbchar (Depends-on): Add wctype. * modules/mbswidth (Depends-on): Likewise. * modules/wcwidth (Depends-on): Likewise.
Bruno Haible 99099106 2006-09-14T14:18:36 Include <config.h> unconditionally.
Bruno Haible 169011e9 2006-07-28T15:31:45 Assume an ASCII compatible wide character encoding.
Bruno Haible 49b3d0b7 2006-07-04T16:46:23 Assume ANSI C.
Bruno Haible d0bcee4e 2006-06-28T17:03:53 Fixes after wcwidth module creation.
Eric Blake 72334d04 2006-06-28T13:11:03 * mbchar.h (wcwidth): Include wcwidth.h. * mbswidth.c (wcwidth): Move from here... * wcwidth.h: ...to this new file.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Bruno Haible a83726a9 2005-04-11T11:52:27 Add comment about possible integer overflow.
Bruno Haible 7230746e 2004-11-08T12:54:48 Use British English, not German English.
Bruno Haible d65bac0e 2004-03-18T13:36:53 Fix portability problem with Tru64 and BSD/OS.
Paul Eggert 7dce93e9 2003-07-31T06:27:05 Fix comments to identify Solaris versions using the same version numbers that Sun does.
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.