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

This commit is contained in:
Benno Schulenberg 2020-03-13 11:59:08 +01:00
parent fcda76f684
commit 9917a05f04
1 changed files with 2 additions and 0 deletions

View File

@ -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)