From 0dbfd281c93ed672319ee34defe67a40452c79e0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 25 Jun 2000 23:39:23 +0000 Subject: 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 --- src/perl/irssi-perl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/perl') 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) -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0