X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmbswidth.c;h=c6f91db971a104f138f4937ec6b70bf7e15de1a3;hb=279342da52719ba89de13f7c8b99660695b95080;hp=9a133b74536389780b1fdfa057203783b54a494e;hpb=a798bae4dbb3694658419068a559841d03de8c9f;p=gnulib.git diff --git a/lib/mbswidth.c b/lib/mbswidth.c index 9a133b745..c6f91db97 100644 --- a/lib/mbswidth.c +++ b/lib/mbswidth.c @@ -21,6 +21,9 @@ # include #endif +/* Specification. */ +#include "mbswidth.h" + /* Get MB_CUR_MAX. */ #include @@ -72,14 +75,12 @@ int wcwidth (); #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif -/* Undefine to protect against the definition in wctype.h of solaris2.6. */ +/* Undefine to protect against the definition in wctype.h of Solaris 2.6. */ #undef ISPRINT #define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c)) #undef ISCNTRL #define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c)) -#include "mbswidth.h" - /* Returns the number of columns needed to represent the multibyte character string pointed to by STRING. If a non-printable character occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned.