diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-25 23:39:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-25 23:39:23 +0000 |
commit | 0dbfd281c93ed672319ee34defe67a40452c79e0 (patch) | |
tree | ffdcaba9fbb926199574fc451b1e4a6349e9f76b /src/perl | |
parent | 69b8d4f81b4dc82ff95e8b845c9a211b62f0248f (diff) | |
download | irssi-0dbfd281c93ed672319ee34defe67a40452c79e0.zip |
Created signal_get_uniq_id() macro. Added some documentation about
signals to design.txt.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@381 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl')
-rw-r--r-- | src/perl/irssi-perl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/perl/irssi-perl.c b/src/perl/irssi-perl.c index edf4ea5e..56b40c67 100644 --- a/src/perl/irssi-perl.c +++ b/src/perl/irssi-perl.c @@ -247,7 +247,7 @@ static int perl_signal_find(const char *signal, const char *func, int last) table = last ? last_signals : first_signals; - signal_id = module_get_uniq_id_str("signals", signal); + signal_id = signal_get_uniq_id(signal); siglist = g_hash_table_lookup(table, GINT_TO_POINTER(signal_id)); while (siglist != NULL) { @@ -272,7 +272,7 @@ static void perl_signal_to(const char *signal, const char *func, int last) return; rec = g_new(PERL_SIGNAL_REC, 1); - rec->signal_id = module_get_uniq_id_str("signals", signal); + rec->signal_id = signal_get_uniq_id(signal); rec->signal = g_strdup(signal); rec->func = g_strdup(func); rec->last = last; @@ -324,7 +324,7 @@ void perl_signal_remove(const char *signal, const char *func) GSList *list; int signal_id; - signal_id = module_get_uniq_id_str("signals", signal); + signal_id = signal_get_uniq_id(signal); list = g_hash_table_lookup(first_signals, GINT_TO_POINTER(signal_id)); if (list != NULL) |