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);
}
}
{
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);
{
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)
{
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);
}
}
{
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);
{
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)
{
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);
}
}
{
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);
{
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)
{
#if defined(USE_PERLIO) && !defined(USE_SFIO)
PerlIO_define_layer(aTHX_ &PerlIO_encode);
#endif
-#include "def_t_def.h"
+#include "def_t.exh"
}
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);
}
}
{
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);
{
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)
{
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);
}
}
{
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);
{
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)
{
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);
}
}
{
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);
{
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)
{
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);
}
{
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)
{
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);
}
}
{
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);
{
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)
{
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);
}
}
{
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);
{
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)
{
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/;