# HG changeset patch # User Mikael Berthe # Date 1177840413 -7200 # Node ID 47579e8c73d061d095a0fa39c82c41d97d8cab41 # Parent 0dbe51d1e62e43866220876263b0465a5a85d5d0 Aspell: is_alpha() isn't needed diff -r 0dbe51d1e62e -r 47579e8c73d0 mcabber/src/screen.c --- a/mcabber/src/screen.c Sun Apr 29 11:19:56 2007 +0200 +++ b/mcabber/src/screen.c Sun Apr 29 11:53:33 2007 +0200 @@ -62,7 +62,6 @@ #ifdef HAVE_ASPELL_H static void spellcheck(char *, char *); -static inline int is_alpha(const char *); #endif static GHashTable *winbufhash; @@ -3283,7 +3282,7 @@ while (*line) { - if (!is_alpha(line)) { + if (!iswalpha(get_char(line))) { line = next_char(line); continue; } @@ -3308,7 +3307,7 @@ start = line; - while (is_alpha(line)) + while (iswalpha(get_char(line))) line = next_char(line); if (spell_checker && @@ -3316,19 +3315,6 @@ memset(&checked[start - line_start], ASPELLBADCHAR, line - start); } } - -// Universal isalpha function -static inline int is_alpha(const char *c) -{ - if (utf8_mode) { - if (iswalpha(get_char(c))) - return 1; - } else { - if (isalpha(*c)) - return 1; - } - return 0; -} #endif /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */