Commit 1aee5cc5 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

more int -> bool conversions

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2796 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 85c0b3c3
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#ifndef HAVE_ISBLANK #ifndef HAVE_ISBLANK
/* This function is equivalent to isblank(). */ /* This function is equivalent to isblank(). */
int nisblank(int c) bool nisblank(int c)
{ {
return isspace(c) && (c == '\t' || !is_cntrl_char(c)); return isspace(c) && (c == '\t' || !is_cntrl_char(c));
} }
...@@ -49,7 +49,7 @@ int nisblank(int c) ...@@ -49,7 +49,7 @@ int nisblank(int c)
#if !defined(HAVE_ISWBLANK) && defined(NANO_WIDE) #if !defined(HAVE_ISWBLANK) && defined(NANO_WIDE)
/* This function is equivalent to iswblank(). */ /* 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)); return iswspace(wc) && (wc == '\t' || !is_cntrl_wchar(wc));
} }
......
...@@ -160,10 +160,10 @@ extern char *homedir; ...@@ -160,10 +160,10 @@ extern char *homedir;
/* Public functions in chars.c. */ /* Public functions in chars.c. */
#ifndef HAVE_ISBLANK #ifndef HAVE_ISBLANK
int nisblank(int c); bool nisblank(int c);
#endif #endif
#if !defined(HAVE_ISWBLANK) && defined(NANO_WIDE) #if !defined(HAVE_ISWBLANK) && defined(NANO_WIDE)
int niswblank(wchar_t wc); bool niswblank(wchar_t wc);
#endif #endif
bool is_byte(int c); bool is_byte(int c);
bool is_alnum_mbchar(const char *c); bool is_alnum_mbchar(const char *c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment