diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-14 17:26:47 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-14 17:26:47 +0200 |
commit | 8c317f03f6d4d89fd7b0cc1e6eaf515040b8e701 (patch) | |
tree | 4bf2806134b65a8734ab6521fb2a1ce243631b42 /libbb/lineedit.c | |
parent | 0545bfa841540a0d7d7e2953bc205eda64144c2e (diff) | |
download | busybox-w32-8c317f03f6d4d89fd7b0cc1e6eaf515040b8e701.tar.gz busybox-w32-8c317f03f6d4d89fd7b0cc1e6eaf515040b8e701.tar.bz2 busybox-w32-8c317f03f6d4d89fd7b0cc1e6eaf515040b8e701.zip |
style fix, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 1d5fef5ee..fbabc6c12 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -70,13 +70,20 @@ | |||
70 | #if ENABLE_UNICODE_SUPPORT | 70 | #if ENABLE_UNICODE_SUPPORT |
71 | # define BB_NUL ((wchar_t)0) | 71 | # define BB_NUL ((wchar_t)0) |
72 | # define CHAR_T wchar_t | 72 | # define CHAR_T wchar_t |
73 | static bool BB_isspace(CHAR_T c) { return ((unsigned)c < 256 && isspace(c)); } | 73 | static bool BB_isspace(CHAR_T c) |
74 | { | ||
75 | return ((unsigned)c < 256 && isspace(c)); | ||
76 | } | ||
74 | # if ENABLE_FEATURE_EDITING_VI | 77 | # if ENABLE_FEATURE_EDITING_VI |
75 | static bool BB_isalnum_or_underscore(CHAR_T c) { | 78 | static bool BB_isalnum_or_underscore(CHAR_T c) |
79 | { | ||
76 | return ((unsigned)c < 256 && isalnum(c)) || c == '_'; | 80 | return ((unsigned)c < 256 && isalnum(c)) || c == '_'; |
77 | } | 81 | } |
78 | # endif | 82 | # endif |
79 | static bool BB_ispunct(CHAR_T c) { return ((unsigned)c < 256 && ispunct(c)); } | 83 | static bool BB_ispunct(CHAR_T c) |
84 | { | ||
85 | return ((unsigned)c < 256 && ispunct(c)); | ||
86 | } | ||
80 | # undef isspace | 87 | # undef isspace |
81 | # undef isalnum | 88 | # undef isalnum |
82 | # undef ispunct | 89 | # undef ispunct |