X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fctype%2Fwcwidth.c;h=49c40eea8cabfc6f1a0a30aafda9625e85b82611;hb=f206fec1c8162ea93ece055f09a571acde69974a;hp=ab05cfec053d6bb6146efef15e3f7c660441a948;hpb=1b0ce9af6d2aa7b92edaf3e9c631cb635bae22bd;p=musl diff --git a/src/ctype/wcwidth.c b/src/ctype/wcwidth.c index ab05cfec..49c40eea 100644 --- a/src/ctype/wcwidth.c +++ b/src/ctype/wcwidth.c @@ -1,14 +1,14 @@ -#include +#include -static unsigned char table[] = { +static const unsigned char table[] = { #include "nonspacing.h" }; -static unsigned char wtable[] = { +static const unsigned char wtable[] = { #include "wide.h" }; -int wcwidth(wint_t wc) +int wcwidth(wchar_t wc) { if (wc < 0xffU) return (wc+1 & 0x7f) >= 0x21 ? 1 : wc ? -1 : 0;