diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-01 16:46:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-01 16:46:16 +0000 |
commit | 4e7d7b1432eb6a136e30fccf1771755faf829ee2 (patch) | |
tree | 7f316991145768249e01565d1a31ed28ff2dd03c /ext | |
parent | 2b1ff55aaecd3cdbb8a785e9cee9007fdd4fc04c (diff) | |
parent | 023d8852d6bde0330d0722ae3a1239d17f22b192 (diff) | |
download | perl-4e7d7b1432eb6a136e30fccf1771755faf829ee2.tar.gz |
Integrate perlio:
[ 14515]
Minor Encode tweaks:
- move Encode.pm back to top of Encode like normal XS extension
- avoid .def as a file extension (Win32 builds)
p4raw-link: @14515 on //depot/perlio: 023d8852d6bde0330d0722ae3a1239d17f22b192
p4raw-id: //depot/perl@14516
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Encode/EUC_JP/Makefile.PL | 15 | ||||
-rw-r--r-- | ext/Encode/Encode.xs | 6 | ||||
-rw-r--r-- | ext/Encode/Makefile.PL | 4 | ||||
-rwxr-xr-x | ext/Encode/compile | 6 |
4 files changed, 17 insertions, 14 deletions
diff --git a/ext/Encode/EUC_JP/Makefile.PL b/ext/Encode/EUC_JP/Makefile.PL index 2b51469615..6b65c9ac8a 100644 --- a/ext/Encode/EUC_JP/Makefile.PL +++ b/ext/Encode/EUC_JP/Makefile.PL @@ -2,10 +2,13 @@ use 5.7.2; use strict; use ExtUtils::MakeMaker; -my %tables = (EUC_JP => ['euc-jp.ucm', - # 'euc-kr.ucm', 'euc-cn.ucm' - ], - ); +my %tables = (EUC_JP => [ + 'euc-jp.ucm', +# 'jis0201.enc', +# 'jis0212.enc', +# 'jis0208.enc', +# 'shiftjis.enc', + ]); WriteMakefile( @@ -39,7 +42,7 @@ sub post_initialize my %xs; foreach my $table (keys %tables) { $xs{"$table.xs"} = "$table.c"; - foreach my $ext (qw($(OBJ_EXT) .xs .c .h .def .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .xs .c .h _def.h .fnm)) { push (@files,$table.$ext); } } @@ -52,7 +55,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'Encode'); - my $str = "# Encode\$(OBJ_EXT) depends on .h and .def files not .c files - but all written by compile\n"; + my $str = "# Encode\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by compile\n"; $str .= 'Encode$(OBJ_EXT) :'; foreach my $table (keys %tables) { diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index 37d8aac28b..2d5661604b 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -662,7 +662,7 @@ BOOT: #if defined(USE_PERLIO) && !defined(USE_SFIO) PerlIO_define_layer(aTHX_ &PerlIO_encode); #endif -#include "8859.def" -#include "EBCDIC.def" -#include "Symbols.def" +#include "8859_def.h" +#include "EBCDIC_def.h" +#include "Symbols_def.h" } diff --git a/ext/Encode/Makefile.PL b/ext/Encode/Makefile.PL index 2478779aa3..5193d0ec2a 100644 --- a/ext/Encode/Makefile.PL +++ b/ext/Encode/Makefile.PL @@ -56,7 +56,7 @@ sub post_initialize my @files; foreach my $table (keys %tables) { - foreach my $ext (qw($(OBJ_EXT) .c .h .def .fnm)) + foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { push (@files,$table.$ext); } @@ -69,7 +69,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->curdir,'Encode'); - my $str = "# Encode\$(OBJ_EXT) depends on .h and .def files not .c files - but all written by compile\n"; + my $str = "# Encode\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by compile\n"; $str .= 'Encode$(OBJ_EXT) :'; foreach my $table (keys %tables) { diff --git a/ext/Encode/compile b/ext/Encode/compile index 26442a00a7..21877f74d0 100755 --- a/ext/Encode/compile +++ b/ext/Encode/compile @@ -52,7 +52,7 @@ open(C,">$cname") || die "Cannot open $cname:$!"; my $dname = $cname; -$dname =~ s/(\.[^\.]*)?$/.def/; +$dname =~ s/(\.[^\.]*)?$/_def.h/; my ($doC,$doEnc,$doUcm,$doPet); @@ -72,7 +72,7 @@ if ($cname =~ /\.(c|xs)$/) /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! This file was autogenerated by: - $^X $0 $cname @orig_ARGV + $^X $0 @orig_ARGV */ END } @@ -189,7 +189,7 @@ if ($doC) my $mod = $1; print C <<'END'; -void +static void Encode_XSEncoding(pTHX_ encode_t *enc) { dSP; |