diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2014-10-24 12:16:34 +0100 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2014-10-24 12:16:34 +0100 |
commit | c9955564bcb7253d7d35721945055f1e8bf7aaf2 (patch) | |
tree | 862f2b698d659b15ffa032412ab51e9660691e52 | |
parent | 7e87a3b73312c48707947b2c5cc27b6402302e72 (diff) | |
download | perl-c9955564bcb7253d7d35721945055f1e8bf7aaf2.tar.gz |
Update Encode to CPAN version 2.63
[DELTA]
$Revision: 2.63 $ $Date: 2014/10/19 07:01:15 $
! Encode.xs
Applied: RT #99264: call_pv() can reallocate the stack
https://rt.cpan.org/Ticket/Display.html?id=99264
! Byte/Makefile.PL CN/Makefile.PL EBCDIC/Makefile.PL Encode.xs
JP/Makefile.PL KR/Makefile.PL Symbol/Makefile.PL TW/Makefile.PL
bin/enc2xs encengine.c
Pulled: add PERL_NO_GET_CONTEXT to all dynamic libs
https://github.com/dankogai/p5-encode/pull/24
-rwxr-xr-x | Porting/Maintainers.pl | 2 | ||||
-rw-r--r-- | cpan/Encode/Byte/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/CN/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/EBCDIC/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/Encode.pm | 4 | ||||
-rw-r--r-- | cpan/Encode/Encode.xs | 8 | ||||
-rw-r--r-- | cpan/Encode/JP/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/KR/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/Symbol/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/TW/Makefile.PL | 1 | ||||
-rw-r--r-- | cpan/Encode/bin/enc2xs | 3 | ||||
-rw-r--r-- | cpan/Encode/encengine.c | 1 |
12 files changed, 18 insertions, 7 deletions
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 5b2a78384c..3a30842412 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -393,7 +393,7 @@ use File::Glob qw(:case); }, 'Encode' => { - 'DISTRIBUTION' => 'DANKOGAI/Encode-2.62.tar.gz', + 'DISTRIBUTION' => 'DANKOGAI/Encode-2.63.tar.gz', 'FILES' => q[cpan/Encode], }, diff --git a/cpan/Encode/Byte/Makefile.PL b/cpan/Encode/Byte/Makefile.PL index 0cc5ece4fb..85b2ccdb2c 100644 --- a/cpan/Encode/Byte/Makefile.PL +++ b/cpan/Encode/Byte/Makefile.PL @@ -102,6 +102,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/CN/Makefile.PL b/cpan/Encode/CN/Makefile.PL index 5e689cb75b..245140a6a3 100644 --- a/cpan/Encode/CN/Makefile.PL +++ b/cpan/Encode/CN/Makefile.PL @@ -78,6 +78,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/EBCDIC/Makefile.PL b/cpan/Encode/EBCDIC/Makefile.PL index 50ae0df257..f746c0cd91 100644 --- a/cpan/Encode/EBCDIC/Makefile.PL +++ b/cpan/Encode/EBCDIC/Makefile.PL @@ -59,6 +59,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/Encode.pm b/cpan/Encode/Encode.pm index f102a1a8e1..03eded648e 100644 --- a/cpan/Encode/Encode.pm +++ b/cpan/Encode/Encode.pm @@ -1,10 +1,10 @@ # -# $Id: Encode.pm,v 2.62 2014/05/31 12:12:39 dankogai Exp dankogai $ +# $Id: Encode.pm,v 2.63 2014/10/19 07:02:18 dankogai Exp $ # package Encode; use strict; use warnings; -our $VERSION = sprintf "%d.%02d", q$Revision: 2.62 $ =~ /(\d+)/g; +our $VERSION = sprintf "%d.%02d", q$Revision: 2.63 $ =~ /(\d+)/g; use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG}; use XSLoader (); XSLoader::load( __PACKAGE__, $VERSION ); diff --git a/cpan/Encode/Encode.xs b/cpan/Encode/Encode.xs index 5ee45399b3..755d6d910d 100644 --- a/cpan/Encode/Encode.xs +++ b/cpan/Encode/Encode.xs @@ -1,5 +1,5 @@ /* - $Id: Encode.xs,v 2.29 2014/05/31 12:12:39 dankogai Exp dankogai $ + $Id: Encode.xs,v 2.30 2014/10/19 07:01:15 dankogai Exp $ */ #define PERL_NO_GET_CONTEXT @@ -19,8 +19,8 @@ encode_method(). 1 is recommended. 2 restores NI-S original */ #define ENCODE_XS_USEFP 1 -#define UNIMPLEMENTED(x,y) y x (SV *sv, char *encoding) {dTHX; \ - Perl_croak(aTHX_ "panic_unimplemented"); \ +#define UNIMPLEMENTED(x,y) y x (SV *sv, char *encoding) { \ + Perl_croak_nocontext("panic_unimplemented"); \ return (y)0; /* fool picky compilers */ \ } /**/ @@ -686,6 +686,7 @@ CODE: /* require_pv(PERLIO_FILENAME); */ eval_pv("require PerlIO::encoding", 0); + SPAGAIN; if (SvTRUE(get_sv("@", 0))) { ST(0) = &PL_sv_no; @@ -703,6 +704,7 @@ CODE: encode_t *enc = INT2PTR(encode_t *, SvIV(SvRV(obj))); SV *retval; eval_pv("require Encode::MIME::Name", 0); + SPAGAIN; if (SvTRUE(get_sv("@", 0))) { ST(0) = &PL_sv_undef; diff --git a/cpan/Encode/JP/Makefile.PL b/cpan/Encode/JP/Makefile.PL index 6ec73eac35..7a7d5ac3d6 100644 --- a/cpan/Encode/JP/Makefile.PL +++ b/cpan/Encode/JP/Makefile.PL @@ -78,6 +78,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/KR/Makefile.PL b/cpan/Encode/KR/Makefile.PL index 0790ed08b4..0095eced44 100644 --- a/cpan/Encode/KR/Makefile.PL +++ b/cpan/Encode/KR/Makefile.PL @@ -76,6 +76,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/Symbol/Makefile.PL b/cpan/Encode/Symbol/Makefile.PL index 2dec60d53f..6be7fb631f 100644 --- a/cpan/Encode/Symbol/Makefile.PL +++ b/cpan/Encode/Symbol/Makefile.PL @@ -64,6 +64,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/TW/Makefile.PL b/cpan/Encode/TW/Makefile.PL index 69b3e96242..1f94d790b8 100644 --- a/cpan/Encode/TW/Makefile.PL +++ b/cpan/Encode/TW/Makefile.PL @@ -74,6 +74,7 @@ sub post_initialize $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include <XSUB.h> diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs index f2dda5362b..5e9f04a4a3 100644 --- a/cpan/Encode/bin/enc2xs +++ b/cpan/Encode/bin/enc2xs @@ -10,7 +10,7 @@ use warnings; use Getopt::Std; use Config; my @orig_ARGV = @ARGV; -our $VERSION = do { my @r = (q$Revision: 2.13 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; +our $VERSION = do { my @r = (q$Revision: 2.14 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; # These may get re-ordered. # RAW is a do_now as inserted by &enter @@ -184,6 +184,7 @@ END if ($cname =~ /(\w+)\.xs$/) { + print C "#define PERL_NO_GET_CONTEXT\n"; print C "#include <EXTERN.h>\n"; print C "#include <perl.h>\n"; print C "#include <XSUB.h>\n"; diff --git a/cpan/Encode/encengine.c b/cpan/Encode/encengine.c index 33f2a8685b..bddf556b35 100644 --- a/cpan/Encode/encengine.c +++ b/cpan/Encode/encengine.c @@ -86,6 +86,7 @@ we add a flag to re-add the removed byte to the source we could handle */ +#define PERL_NO_GET_CONTEXT #include <EXTERN.h> #include <perl.h> #include "encode.h" |