summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/chat-completion.c2
-rw-r--r--src/fe-common/core/completion.c4
-rw-r--r--src/fe-common/core/fe-messages.c4
-rw-r--r--src/fe-common/core/fe-settings.c4
-rw-r--r--src/fe-common/core/formats.c10
-rw-r--r--src/fe-common/core/keyboard.c4
-rw-r--r--src/fe-common/core/themes.c2
-rw-r--r--src/fe-common/core/translation.c2
8 files changed, 16 insertions, 16 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c
index bf92196a..6b988a1c 100644
--- a/src/fe-common/core/chat-completion.c
+++ b/src/fe-common/core/chat-completion.c
@@ -393,7 +393,7 @@ static GList *completion_nicks_nonstrict(CHANNEL_REC *channel,
/* remove non alnum chars from nick */
in = rec->nick; out = str;
while (*in != '\0') {
- if (isalnum(*in))
+ if (i_isalnum(*in))
*out++ = *in;
in++;
}
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c
index 1b7d4465..399465ed 100644
--- a/src/fe-common/core/completion.c
+++ b/src/fe-common/core/completion.c
@@ -41,7 +41,7 @@ static int last_want_space, last_line_pos;
((c) == ',')
#define isseparator(c) \
- (isspace((int) (c)) || isseparator_notspace(c))
+ (i_isspace(c) || isseparator_notspace(c))
void chat_completion_init(void);
void chat_completion_deinit(void);
@@ -489,7 +489,7 @@ static char *line_get_command(const char *line, char **args, int aliases)
} else {
checkcmd = g_strndup(line, (int) (ptr-line));
- while (isspace(*ptr)) ptr++;
+ while (i_isspace(*ptr)) ptr++;
cmdargs = ptr;
}
diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c
index ffb46ca4..4b4e4db4 100644
--- a/src/fe-common/core/fe-messages.c
+++ b/src/fe-common/core/fe-messages.c
@@ -37,7 +37,7 @@
#include "hilight-text.h"
#include "printtext.h"
-#define ishighalnum(c) ((unsigned char) (c) >= 128 || isalnum(c))
+#define ishighalnum(c) ((unsigned char) (c) >= 128 || i_isalnum(c))
static GHashTable *printnicks;
@@ -67,7 +67,7 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
/* check that the beginning marker starts a word, and
that the matching end marker ends a word */
- if ((pos > 0 && !isspace(bgn[-1])) || !ishighalnum(bgn[1]))
+ if ((pos > 0 && !i_isspace(bgn[-1])) || !ishighalnum(bgn[1]))
continue;
if ((end = strchr(bgn+1, *bgn)) == NULL)
continue;
diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c
index 1bf0a954..bb4405fa 100644
--- a/src/fe-common/core/fe-settings.c
+++ b/src/fe-common/core/fe-settings.c
@@ -266,7 +266,7 @@ static void settings_save_fe(const char *fname)
static void settings_save_confirm(const char *line, char *fname)
{
- if (toupper(line[0]) == 'Y')
+ if (i_toupper(line[0]) == 'Y')
settings_save_fe(fname);
g_free(fname);
}
@@ -304,7 +304,7 @@ static void cmd_save(const char *data)
static void settings_clean_confirm(const char *line)
{
- if (toupper(line[0]) == 'Y')
+ if (i_toupper(line[0]) == 'Y')
settings_clean_invalid();
}
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c
index 4e0561bb..65b54ce6 100644
--- a/src/fe-common/core/formats.c
+++ b/src/fe-common/core/formats.c
@@ -699,7 +699,7 @@ static const char *get_ansi_color(THEME_REC *theme, const char *str,
for (;; str++) {
if (*str == '\0') return start;
- if (isdigit((int) *str)) {
+ if (i_isdigit(*str)) {
num = num*10 + (*str-'0');
continue;
}
@@ -758,7 +758,7 @@ static void get_mirc_color(const char **str, int *fg_ret, int *bg_ret)
fg = fg_ret == NULL ? -1 : *fg_ret;
bg = bg_ret == NULL ? -1 : *bg_ret;
- if (!isdigit((int) **str) && **str != ',') {
+ if (!i_isdigit(**str) && **str != ',') {
fg = -1;
bg = -1;
} else {
@@ -766,7 +766,7 @@ static void get_mirc_color(const char **str, int *fg_ret, int *bg_ret)
if (**str != ',') {
fg = **str-'0';
(*str)++;
- if (isdigit((int) **str)) {
+ if (i_isdigit(**str)) {
fg = fg*10 + (**str-'0');
(*str)++;
}
@@ -774,12 +774,12 @@ static void get_mirc_color(const char **str, int *fg_ret, int *bg_ret)
if (**str == ',') {
/* background color */
(*str)++;
- if (!isdigit((int) **str))
+ if (!i_isdigit(**str))
bg = -1;
else {
bg = **str-'0';
(*str)++;
- if (isdigit((int) **str)) {
+ if (i_isdigit(**str)) {
bg = bg*10 + (**str-'0');
(*str)++;
}
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c
index bba8e4dd..ba41e6b2 100644
--- a/src/fe-common/core/keyboard.c
+++ b/src/fe-common/core/keyboard.c
@@ -265,7 +265,7 @@ static int expand_key(const char *key, GSList **out)
start = NULL; last_hyphen = TRUE;
for (; *key != '\0'; key++) {
if (start != NULL) {
- if (isalnum(*key) || *key == '_') {
+ if (i_isalnum(*key) || *key == '_') {
/* key combo continues */
continue;
}
@@ -291,7 +291,7 @@ static int expand_key(const char *key, GSList **out)
expand_out_char(*out, *key);
expand_out_char(*out, '-');
last_hyphen = FALSE; /* optional */
- } else if (last_hyphen && isalnum(*key) && !isdigit(*key)) {
+ } else if (last_hyphen && i_isalnum(*key) && !i_isdigit(*key)) {
/* possibly beginning of keycombo */
start = key;
last_hyphen = FALSE;
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c
index 04763612..f009f0ba 100644
--- a/src/fe-common/core/themes.c
+++ b/src/fe-common/core/themes.c
@@ -332,7 +332,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme,
NULL, NULL, flags);
len = strlen(data);
- if (len > 1 && isdigit(data[len-1]) && data[len-2] == '$') {
+ if (len > 1 && i_isdigit(data[len-1]) && data[len-2] == '$') {
/* ends with $<digit> .. this breaks things if next
character is digit or '-' */
char digit, *tmp;
diff --git a/src/fe-common/core/translation.c b/src/fe-common/core/translation.c
index c674b9a2..d573fc17 100644
--- a/src/fe-common/core/translation.c
+++ b/src/fe-common/core/translation.c
@@ -50,7 +50,7 @@ void translate_output(char *text)
}
#define gethex(a) \
- (isdigit(a) ? ((a)-'0') : (toupper(a)-'A'+10))
+ (i_isdigit(a) ? ((a)-'0') : (i_toupper(a)-'A'+10))
void translation_parse_line(const char *str, int *pos)
{