This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
restore Storable's portability to pre-5.25.6 perls
authorZefram <zefram@fysh.org>
Fri, 21 Jul 2017 04:48:20 +0000 (05:48 +0100)
committerZefram <zefram@fysh.org>
Fri, 21 Jul 2017 04:50:08 +0000 (05:50 +0100)
Commit 4f72e1e921be7caffd7029f421f171bad7f485f2 changed Storable.xs to
use SvPVCLEAR(), defined only on 5.25.6 and later, but didn't supply a
reserve definition.  Add the obvious reserve definition.

dist/Storable/Storable.pm
dist/Storable/Storable.xs

index 3adc804..ae96a6c 100644 (file)
@@ -22,7 +22,7 @@ package Storable; @ISA = qw(Exporter);
 
 use vars qw($canonical $forgive_me $VERSION);
 
-$VERSION = '2.63';
+$VERSION = '2.64';
 
 BEGIN {
     if (eval {
index 1043bf7..dcd24e7 100644 (file)
 #  define SvTRULYREADONLY(sv)  (SvREADONLY(sv) && !SvIsCOW(sv))
 #endif
 
+#ifndef SvPVCLEAR
+#  define SvPVCLEAR(sv) sv_setpvs((sv), "")
+#endif
+
 #ifdef DEBUGME
 
 #ifndef DASSERT