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)
commit5c32f025d1b6b0692e4a5175220127ddfda88f17
tree4b3607cde4e110ffe17accaee5e70473c16f5e54
parentd7b03dfc022d0e53d43543018e0a41fa115fdccf
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