diff --git a/src/chars.c b/src/chars.c index c9f82c89447c9521b172be5822059baab9170d35..ead9da67eb606423200b49d0dfcdc38ee589a3c9 100644 --- a/src/chars.c +++ b/src/chars.c @@ -41,7 +41,7 @@ #ifndef HAVE_ISBLANK /* This function is equivalent to isblank(). */ -int nisblank(int c) +bool nisblank(int c) { return isspace(c) && (c == '\t' || !is_cntrl_char(c)); } @@ -49,7 +49,7 @@ int nisblank(int c) #if !defined(HAVE_ISWBLANK) && defined(NANO_WIDE) /* This function is equivalent to iswblank(). */ -int niswblank(wchar_t wc) +bool niswblank(wchar_t wc) { return iswspace(wc) && (wc == '\t' || !is_cntrl_wchar(wc)); } diff --git a/src/proto.h b/src/proto.h index 3ec203836870afcd7e6edac9c78604dc5f12ae8d..f584d46abab44918ae2c0d40f9c8cc7adea4da03 100644 --- a/src/proto.h +++ b/src/proto.h @@ -160,10 +160,10 @@ extern char *homedir; /* Public functions in chars.c. */ #ifndef HAVE_ISBLANK -int nisblank(int c); +bool nisblank(int c); #endif #if !defined(HAVE_ISWBLANK) && defined(NANO_WIDE) -int niswblank(wchar_t wc); +bool niswblank(wchar_t wc); #endif bool is_byte(int c); bool is_alnum_mbchar(const char *c);