mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Merge pull request #512 from LemonBoy/coderef
Allow Irssi::signal_remove to work properly with coderefs
This commit is contained in:
commit
4be256fcf0
1 changed files with 3 additions and 2 deletions
|
|
@ -433,8 +433,9 @@ static void perl_signal_remove_list_one(GSList **siglist, PERL_SIGNAL_REC *rec)
|
|||
}
|
||||
|
||||
#define sv_func_cmp(f1, f2) \
|
||||
(f1 == f2 || (SvPOK(f1) && SvPOK(f2) && \
|
||||
g_strcmp0(SvPV_nolen(f1), SvPV_nolen(f2)) == 0))
|
||||
((SvROK(f1) && SvROK(f2) && SvRV(f1) == SvRV(f2)) || \
|
||||
(SvPOK(f1) && SvPOK(f2) && \
|
||||
g_strcmp0(SvPV_nolen(f1), SvPV_nolen(f2)) == 0))
|
||||
|
||||
static void perl_signal_remove_list(GSList **list, SV *func)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue