From: Jarkko Hietaniemi Date: Wed, 3 Apr 2002 17:55:48 +0000 (+0000) Subject: Tweak for 8.3 compat. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7cbefb8f35850373025fec8ebf4c27d47127348;p=p5sagit%2Fp5-mst-13.2.git Tweak for 8.3 compat. p4raw-id: //depot/perl@15712 --- diff --git a/ext/Encode/Byte/Makefile.PL b/ext/Encode/Byte/Makefile.PL index 641317a..648f5bb 100644 --- a/ext/Encode/Byte/Makefile.PL +++ b/ext/Encode/Byte/Makefile.PL @@ -77,7 +77,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -121,7 +121,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -132,7 +132,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/CN/Makefile.PL b/ext/Encode/CN/Makefile.PL index d0630b8..45ae234 100644 --- a/ext/Encode/CN/Makefile.PL +++ b/ext/Encode/CN/Makefile.PL @@ -49,7 +49,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -93,7 +93,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -104,7 +104,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/EBCDIC/Makefile.PL b/ext/Encode/EBCDIC/Makefile.PL index adf59b0..62c8d9f 100644 --- a/ext/Encode/EBCDIC/Makefile.PL +++ b/ext/Encode/EBCDIC/Makefile.PL @@ -44,7 +44,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -88,7 +88,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -99,7 +99,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index 014802d..1152c7a 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -820,5 +820,5 @@ BOOT: #if defined(USE_PERLIO) && !defined(USE_SFIO) PerlIO_define_layer(aTHX_ &PerlIO_encode); #endif -#include "def_t_def.h" +#include "def_t.exh" } diff --git a/ext/Encode/Encode/Makefile_PL.e2x b/ext/Encode/Encode/Makefile_PL.e2x index 000ce92..d386148 100644 --- a/ext/Encode/Encode/Makefile_PL.e2x +++ b/ext/Encode/Encode/Makefile_PL.e2x @@ -53,7 +53,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -97,7 +97,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -108,7 +108,7 @@ sub postamble { my $self = shift; my $dir = "."; # $self->catdir('Encode'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/JP/Makefile.PL b/ext/Encode/JP/Makefile.PL index 4c0fbd3..2b084aa 100644 --- a/ext/Encode/JP/Makefile.PL +++ b/ext/Encode/JP/Makefile.PL @@ -48,7 +48,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -92,7 +92,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -103,7 +103,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/KR/Makefile.PL b/ext/Encode/KR/Makefile.PL index db6ef25..12c4d57 100644 --- a/ext/Encode/KR/Makefile.PL +++ b/ext/Encode/KR/Makefile.PL @@ -48,7 +48,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -92,7 +92,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -103,7 +103,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/Makefile.PL b/ext/Encode/Makefile.PL index 71bc5fb..8e583b5 100644 --- a/ext/Encode/Makefile.PL +++ b/ext/Encode/Makefile.PL @@ -65,7 +65,7 @@ sub post_initialize my @files; foreach my $table (keys %tables) { - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } @@ -78,7 +78,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->curdir,'ucm'); - my $str = "# Encode\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# Encode\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= 'Encode$(OBJ_EXT) :'; foreach my $table (keys %tables) { diff --git a/ext/Encode/Symbol/Makefile.PL b/ext/Encode/Symbol/Makefile.PL index f5772be..a090bed 100644 --- a/ext/Encode/Symbol/Makefile.PL +++ b/ext/Encode/Symbol/Makefile.PL @@ -44,7 +44,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -88,7 +88,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -99,7 +99,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/TW/Makefile.PL b/ext/Encode/TW/Makefile.PL index 2b100ee..2c981b8 100644 --- a/ext/Encode/TW/Makefile.PL +++ b/ext/Encode/TW/Makefile.PL @@ -46,7 +46,7 @@ sub post_initialize push (@{$self->{'C'}},"$table.c"); # Do NOT add $table.h etc. to H_FILES unless we own up as to how they # get built. - foreach my $ext (qw($(OBJ_EXT) .c .h _def.h .fnm)) { + foreach my $ext (qw($(OBJ_EXT) .c .h .exh .fnm)) { push (@files,$table.$ext); } } @@ -90,7 +90,7 @@ BOOT: { END foreach my $table (keys %tables) { - print XS qq[#include "${table}_def.h"\n]; + print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); @@ -101,7 +101,7 @@ sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); - my $str = "# $name\$(OBJ_EXT) depends on .h and _def.h files not .c files - but all written by enc2xs\n"; + my $str = "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n"; $str .= "$name.c : $name.xs "; foreach my $table (keys %tables) { diff --git a/ext/Encode/bin/enc2xs b/ext/Encode/bin/enc2xs index 3a9780b..57dca46 100644 --- a/ext/Encode/bin/enc2xs +++ b/ext/Encode/bin/enc2xs @@ -161,7 +161,7 @@ my ($doC,$doEnc,$doUcm,$doPet); if ($cname =~ /\.(c|xs)$/) { $doC = 1; - $dname =~ s/(\.[^\.]*)?$/_def.h/; + $dname =~ s/(\.[^\.]*)?$/.exh/; chmod(0666,$dname) if -f $cname && !-w $dname; open(D,">$dname") || die "Cannot open $dname:$!"; $hname =~ s/(\.[^\.]*)?$/.h/;