summaryrefslogtreecommitdiff
path: root/src/perl/perl-sources.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-sources.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-sources.c')
-rw-r--r--src/perl/perl-sources.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/perl/perl-sources.c b/src/perl/perl-sources.c
index 4a3fdea6..7718b871 100644
--- a/src/perl/perl-sources.c
+++ b/src/perl/perl-sources.c
@@ -77,10 +77,8 @@ static int perl_source_event(PERL_SOURCE_REC *rec)
SPAGAIN;
if (SvTRUE(ERRSV)) {
- STRLEN n_a;
-
signal_emit("script error", 2, rec->script,
- SvPV(ERRSV, n_a));
+ SvPV(ERRSV, PL_na));
}
perl_source_unref(rec);