summaryrefslogtreecommitdiff
path: root/src/perl/perl-signals.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-11 16:44:53 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-11 16:44:53 +0000
commit617123b5d414b9b44159d1fe2a0bc57b0f272f08 (patch)
tree34bff8ee43e924f0ef85a6732d115afa8a04e2e0 /src/perl/perl-signals.c
parentd4ee6fd604f0a94d8a7f42dfcd716768beda1241 (diff)
downloadirssi-617123b5d414b9b44159d1fe2a0bc57b0f272f08.zip
I always forget Perl 5.004 doesn't have PL_na .. so, now I've declared for
5.004, and changed all STRLEN n_a code to use PL_na instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2238 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/perl-signals.c')
-rw-r--r--src/perl/perl-signals.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/perl/perl-signals.c b/src/perl/perl-signals.c
index eb00f455..8df488cd 100644
--- a/src/perl/perl-signals.c
+++ b/src/perl/perl-signals.c
@@ -160,9 +160,7 @@ static void perl_call_signal(PERL_SCRIPT_REC *script, SV *func,
SPAGAIN;
if (SvTRUE(ERRSV)) {
- STRLEN n_a;
-
- signal_emit("script error", 2, script, SvPV(ERRSV, n_a));
+ signal_emit("script error", 2, script, SvPV(ERRSV, PL_na));
rec = NULL;
}
@@ -335,14 +333,13 @@ static void perl_signal_remove_list_one(GSList **siglist, PERL_SIGNAL_REC *rec)
static void perl_signal_remove_list(GSList **list, SV *func)
{
GSList *tmp;
- STRLEN n_a;
g_return_if_fail(list != NULL);
for (tmp = *list; tmp != NULL; tmp = tmp->next) {
PERL_SIGNAL_REC *rec = tmp->data;
- if (sv_func_cmp(rec->func, func, n_a)) {
+ if (sv_func_cmp(rec->func, func, PL_na)) {
perl_signal_remove_list_one(list, rec);
break;
}