nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 9917a05f04be3acfc2aee9a1efd3aae5f3941928
parent fcda76f684045787d9b1af94718252ae0005aa39
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 13 Mar 2020 11:59:08 +0100

tweaks: exclude a function when compiled without spell-checking support

Diffstat:
Msrc/chars.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/chars.c b/src/chars.c @@ -44,6 +44,7 @@ bool using_utf8(void) } #endif /* ENABLE_UTF8 */ +#ifdef ENABLE_SPELLER /* Return TRUE when the given character is some kind of letter. */ bool is_alpha_char(const char *c) { @@ -58,6 +59,7 @@ bool is_alpha_char(const char *c) return isalpha((unsigned char)*c); #endif } +#endif /* ENABLE_SPELLER */ /* Return TRUE when the given character is some kind of letter or a digit. */ bool is_alnum_char(const char *c)