Don't include <limits.h>.
authorJim Meyering <jim@meyering.net>
Sat, 4 Aug 2001 17:07:37 +0000 (17:07 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 4 Aug 2001 17:07:37 +0000 (17:07 +0000)
commit752fb79cac4cc4b87db2c646cc87cbf0e09109a1
treef171e4bca21f112bda373960d576f556df6ffb3b
parent465a0e3b5ed69466f11764ed85ab0fe331238064
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.
lib/mbswidth.c