Age | Commit message (Collapse) | Author |
|
|
|
* mbswidth.c: Include <stdio.h> and <time.h> before <wchar.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.
|
|
Remove workaround macros for hosts that have mbrtowc but not
mbstate_t, as we now insist on proper declarations for both
before using mbrtowc.
|
|
invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
|
|
|
|
(mbsnwidth): New function.
|
|
(wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
|
|
|