From 1aee5cc599d09f0ab5169b5ec8cf881cb6dda1a3 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 29 Jun 2005 18:17:54 +0000 Subject: [PATCH] more int -> bool conversions git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2796 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/chars.c | 4 ++-- src/proto.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chars.c b/src/chars.c index c9f82c89..ead9da67 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 3ec20383..f584d46a 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); -- 2.39.5