mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
correct wrong function prefixes: g_istr -> i_istr
This commit is contained in:
parent
edb2f699d1
commit
9181796472
14 changed files with 30 additions and 36 deletions
|
|
@ -740,8 +740,7 @@ int cmd_get_params(const char *data, gpointer *free_me, int count, ...)
|
|||
opthash = (GHashTable **) va_arg(args, GHashTable **);
|
||||
|
||||
rec->options = *opthash =
|
||||
g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
|
||||
ignore_unknown = count & PARAM_FLAG_UNKNOWN_OPTIONS;
|
||||
error = get_cmd_options(&datad, ignore_unknown,
|
||||
|
|
|
|||
|
|
@ -408,17 +408,17 @@ char *convert_home(const char *path)
|
|||
}
|
||||
}
|
||||
|
||||
int g_istr_equal(gconstpointer v, gconstpointer v2)
|
||||
int i_istr_equal(gconstpointer v, gconstpointer v2)
|
||||
{
|
||||
return g_ascii_strcasecmp((const char *) v, (const char *) v2) == 0;
|
||||
}
|
||||
|
||||
int g_istr_cmp(gconstpointer v, gconstpointer v2)
|
||||
int i_istr_cmp(gconstpointer v, gconstpointer v2)
|
||||
{
|
||||
return g_ascii_strcasecmp((const char *) v, (const char *) v2);
|
||||
}
|
||||
|
||||
guint g_istr_hash(gconstpointer v)
|
||||
guint i_istr_hash(gconstpointer v)
|
||||
{
|
||||
const signed char *p;
|
||||
guint32 h = 5381;
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ GList *optlist_remove_known(const char *cmd, GHashTable *optlist);
|
|||
char *convert_home(const char *path);
|
||||
|
||||
/* Case-insensitive string hash functions */
|
||||
int g_istr_equal(gconstpointer v, gconstpointer v2);
|
||||
unsigned int g_istr_hash(gconstpointer v);
|
||||
int i_istr_equal(gconstpointer v, gconstpointer v2);
|
||||
unsigned int i_istr_hash(gconstpointer v);
|
||||
|
||||
/* Case-insensitive GCompareFunc func */
|
||||
int g_istr_cmp(gconstpointer v, gconstpointer v2);
|
||||
int i_istr_cmp(gconstpointer v, gconstpointer v2);
|
||||
|
||||
/* Find `mask' from `data', you can use * and ? wildcards. */
|
||||
int match_wildcards(const char *mask, const char *data);
|
||||
|
|
|
|||
|
|
@ -456,8 +456,7 @@ static void sig_channel_created(CHANNEL_REC *channel)
|
|||
{
|
||||
g_return_if_fail(IS_CHANNEL(channel));
|
||||
|
||||
channel->nicks = g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
channel->nicks = g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
}
|
||||
|
||||
static void nicklist_remove_hash(gpointer key, NICK_REC *nick,
|
||||
|
|
|
|||
|
|
@ -876,8 +876,7 @@ static int sig_autosave(void)
|
|||
|
||||
void settings_init(void)
|
||||
{
|
||||
settings = g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
settings = g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
|
||||
last_errors = NULL;
|
||||
last_invalid_modules = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue