mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Merge pull request #1246 from ailin-nemui/wrong-prefixes
correct wrong function prefixes
Module authors will have to adapt these changes:
[M] 'constant I_INPUT_READ' {G_INPUT_READ}
[M] 'constant I_INPUT_WRITE' {G_INPUT_WRITE}
[M] 'function int i_input_add(GIOChannel*, int, GInputFunction, void*)' {g_input_add}
[M] 'function int i_input_add_full(GIOChannel*, int, int, GInputFunction, void*)' {g_input_add_full}
[M] 'function int i_input_add_poll(int, int, int, GInputFunction, void*)' {g_input_add_poll}
[M] 'function GIOChannel* i_io_channel_new(int)' {g_io_channel_new}
[M] 'function int i_io_channel_read_block(GIOChannel*, void*, int)' {g_io_channel_read_block}
[M] 'function int i_io_channel_write_block(GIOChannel*, void*, int)' {g_io_channel_write_block}
[M] 'function int i_istr_cmp(gconstpointer, gconstpointer)' {g_istr_cmp}
[M] 'function int i_istr_equal(gconstpointer, gconstpointer)' {g_istr_equal}
[M] 'function guint i_istr_hash(gconstpointer)' {g_istr_hash}
[M] 'function void i_log_func(const char*, GLogLevelFlags, const char*)' {glog_func}
[M] 'function GSList* i_slist_delete_string(GSList*, const char*, GDestroyNotify)' {gslist_delete_string}
[M] 'function GSList* i_slist_find_icase_string(GSList*, const char*)' {gslist_find_icase_string}
[M] 'function GSList* i_slist_find_string(GSList*, const char*)' {gslist_find_string}
[M] 'function void* i_slist_foreach_find(GSList*, FOREACH_FIND_FUNC, void*)' {gslist_foreach_find}
[M] 'function void i_slist_free_full(GSList*, GDestroyNotify)' {gslist_free_full}
[M] 'function GSList* i_slist_remove_string(GSList*, const char*)' {gslist_remove_string}
[M] 'function char* i_slist_to_string(GSList*, const char*)' {gslist_to_string}
This commit is contained in:
commit
db9aa817d5
46 changed files with 181 additions and 231 deletions
|
|
@ -258,14 +258,14 @@ CODE:
|
|||
int
|
||||
INPUT_READ()
|
||||
CODE:
|
||||
RETVAL = G_INPUT_READ;
|
||||
RETVAL = I_INPUT_READ;
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
int
|
||||
INPUT_WRITE()
|
||||
CODE:
|
||||
RETVAL = G_INPUT_WRITE;
|
||||
RETVAL = I_INPUT_WRITE;
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ static void perl_settings_remove(const char *key)
|
|||
g_return_if_fail(script != NULL);
|
||||
|
||||
list = g_hash_table_lookup(perl_settings, script);
|
||||
pos = gslist_find_icase_string(list, key);
|
||||
pos = i_slist_find_icase_string(list, key);
|
||||
if (pos != NULL) {
|
||||
list = g_slist_remove(list, pos->data);
|
||||
g_hash_table_insert(perl_settings, script, list);
|
||||
|
|
|
|||
|
|
@ -664,7 +664,7 @@ static void perl_unregister_protocol(CHAT_PROTOCOL_REC *rec)
|
|||
GSList *item;
|
||||
void *data;
|
||||
|
||||
item = gslist_find_icase_string(use_protocols, rec->name);
|
||||
item = i_slist_find_icase_string(use_protocols, rec->name);
|
||||
if (item != NULL) {
|
||||
data = item->data;
|
||||
use_protocols = g_slist_remove(use_protocols, data);
|
||||
|
|
|
|||
|
|
@ -139,8 +139,8 @@ int perl_input_add(int source, int condition, SV *func, SV *data, int once)
|
|||
rec->func = perl_func_sv_inc(func, pkg);
|
||||
rec->data = SvREFCNT_inc(data);
|
||||
|
||||
rec->tag = g_input_add_poll(source, G_PRIORITY_DEFAULT, condition,
|
||||
(GInputFunction) perl_source_event, rec);
|
||||
rec->tag = i_input_add_poll(source, G_PRIORITY_DEFAULT, condition,
|
||||
(GInputFunction) perl_source_event, rec);
|
||||
|
||||
perl_sources = g_slist_append(perl_sources, rec);
|
||||
return rec->tag;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue