From 21ed79938e08665e6544db1ab43384d11bdfd7a3 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 12 Mar 2020 15:52:13 +0100 Subject: [PATCH] tweaks: normalize the indentation after the previous two changes --- src/chars.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/chars.c b/src/chars.c index 466ce99a..5f268123 100644 --- a/src/chars.c +++ b/src/chars.c @@ -47,37 +47,37 @@ bool using_utf8(void) /* Return TRUE when the given character is some kind of letter. */ bool is_alpha_char(const char *c) { - wchar_t wc; + wchar_t wc; - if (mbtowc(&wc, c, MAXCHARLEN) < 0) - return FALSE; + if (mbtowc(&wc, c, MAXCHARLEN) < 0) + return FALSE; - return iswalpha(wc); + return iswalpha(wc); } /* Return TRUE when the given character is some kind of letter or a digit. */ bool is_alnum_char(const char *c) { - wchar_t wc; + wchar_t wc; - if (mbtowc(&wc, c, MAXCHARLEN) < 0) - return FALSE; + if (mbtowc(&wc, c, MAXCHARLEN) < 0) + return FALSE; - return iswalnum(wc); + return iswalnum(wc); } /* Return TRUE when the given character is space or tab or other whitespace. */ bool is_blank_char(const char *c) { - wchar_t wc; + wchar_t wc; if ((signed char)*c >= 0) return (*c == ' ' || *c == TAB_CODE); - if (mbtowc(&wc, c, MAXCHARLEN) < 0) - return FALSE; + if (mbtowc(&wc, c, MAXCHARLEN) < 0) + return FALSE; - return iswblank(wc); + return iswblank(wc); } /* Return TRUE when the given character is a control character. */ @@ -95,12 +95,12 @@ bool is_cntrl_char(const char *c) /* Return TRUE when the given character is a punctuation character. */ bool is_punct_char(const char *c) { - wchar_t wc; + wchar_t wc; - if (mbtowc(&wc, c, MAXCHARLEN) < 0) - return FALSE; + if (mbtowc(&wc, c, MAXCHARLEN) < 0) + return FALSE; - return iswpunct(wc); + return iswpunct(wc); } /* Return TRUE when the given character is word-forming (it is alphanumeric or