Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
Encode /
TW /
Delete
Unzip
Name
Size
Permission
Date
Action
Makefile
23.93
KB
-rw-r--r--
2016-10-10 17:39
Makefile.PL
4.42
KB
-r--r--r--
2014-12-27 11:49
TW.bs
0
B
-rw-r--r--
2016-10-10 17:41
TW.c
5.94
KB
-rw-r--r--
2016-10-10 17:39
TW.o
4.27
KB
-rw-r--r--
2016-10-10 17:39
TW.pm
2.24
KB
-r--r--r--
2014-12-27 11:48
TW.xs
992
B
-rw-r--r--
2016-10-10 17:39
bi_00_t.c
532.72
KB
-rw-r--r--
2016-10-10 17:39
bi_00_t.exh
226
B
-rw-r--r--
2016-10-10 17:39
bi_00_t.fnm
21
B
-rw-r--r--
2016-10-10 17:39
bi_00_t.h
215
B
-rw-r--r--
2016-10-10 17:39
bi_00_t.o
438.47
KB
-rw-r--r--
2016-10-10 17:39
bi_01_t.c
839.62
KB
-rw-r--r--
2016-10-10 17:39
bi_01_t.exh
227
B
-rw-r--r--
2016-10-10 17:39
bi_01_t.fnm
22
B
-rw-r--r--
2016-10-10 17:39
bi_01_t.h
216
B
-rw-r--r--
2016-10-10 17:39
bi_01_t.o
730.48
KB
-rw-r--r--
2016-10-10 17:39
cp_02_t.c
648.15
KB
-rw-r--r--
2016-10-10 17:39
cp_02_t.exh
222
B
-rw-r--r--
2016-10-10 17:39
cp_02_t.fnm
17
B
-rw-r--r--
2016-10-10 17:39
cp_02_t.h
211
B
-rw-r--r--
2016-10-10 17:39
cp_02_t.o
494.53
KB
-rw-r--r--
2016-10-10 17:39
ma_03_t.c
545.43
KB
-rw-r--r--
2016-10-10 17:39
ma_03_t.exh
231
B
-rw-r--r--
2016-10-10 17:39
ma_03_t.fnm
23
B
-rw-r--r--
2016-10-10 17:39
ma_03_t.h
220
B
-rw-r--r--
2016-10-10 17:39
ma_03_t.o
430.3
KB
-rw-r--r--
2016-10-10 17:39
pm_to_blib
0
B
-rw-r--r--
2016-10-10 17:39
Save
Rename
use 5.7.2; use strict; use ExtUtils::MakeMaker; use strict; my %tables = (big5_t => ['big5-eten.ucm', 'big5-hkscs.ucm', 'macChintrad.ucm', 'cp950.ucm'], ); unless ($ENV{AGGREGATE_TABLES}){ my @ucm; for my $k (keys %tables){ push @ucm, @{$tables{$k}}; } %tables = (); my $seq = 0; for my $ucm (sort @ucm){ # 8.3 compliance ! my $t = sprintf ("%s_%02d_t", substr($ucm, 0, 2), $seq++); $tables{$t} = [ $ucm ]; } } my $name = 'TW'; WriteMakefile( INC => "-I../Encode", NAME => 'Encode::'.$name, VERSION_FROM => "$name.pm", OBJECT => '$(O_FILES)', 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', DIST_DEFAULT => 'all tardist', }, MAN3PODS => {}, # OS 390 winges about line numbers > 64K ??? XSOPT => '-nolinenumbers', ); package MY; sub post_initialize { my ($self) = @_; my %o; my $x = $self->{'OBJ_EXT'}; # Add the table O_FILES foreach my $e (keys %tables) { $o{$e.$x} = 1; } $o{"$name$x"} = 1; $self->{'O_FILES'} = [sort keys %o]; my @files = ("$name.xs"); $self->{'C'} = ["$name.c"]; $self->{SOURCE} .= " $name.c" if $^O eq 'MacOS' && $self->{SOURCE} !~ /\b$name\.c\b/; $self->{'H'} = [$self->catfile($self->updir,'Encode', 'encode.h')]; my %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 .exh .fnm)) { push (@files,$table.$ext); } $self->{SOURCE} .= " $table.c" if $^O eq 'MacOS' && $self->{SOURCE} !~ /\b$table\.c\b/; } $self->{'XS'} = { "$name.xs" => "$name.c" }; $self->{'clean'}{'FILES'} .= join(' ',@files); open(XS,">$name.xs") || die "Cannot open $name.xs:$!"; print XS <<'END'; #include <EXTERN.h> #include <perl.h> #include <XSUB.h> #include "encode.h" END foreach my $table (sort keys %tables) { print XS qq[#include "${table}.h"\n]; } print XS <<"END"; static void Encode_XSEncoding(pTHX_ encode_t *enc) { dSP; HV *stash = gv_stashpv("Encode::XS", TRUE); SV *iv = newSViv(PTR2IV(enc)); SV *sv = sv_bless(newRV_noinc(iv),stash); int i = 0; /* with the SvLEN() == 0 hack, PVX won't be freed. We cast away name's constness, in the hope that perl won't mess with it. */ assert(SvTYPE(iv) >= SVt_PV); assert(SvLEN(iv) == 0); SvFLAGS(iv) |= SVp_POK; SvPVX(iv) = (char*) enc->name[0]; PUSHMARK(sp); XPUSHs(sv); while (enc->name[i]) { const char *name = enc->name[i++]; XPUSHs(sv_2mortal(newSVpvn(name,strlen(name)))); } PUTBACK; call_pv("Encode::define_encoding",G_DISCARD); SvREFCNT_dec(sv); } MODULE = Encode::$name PACKAGE = Encode::$name PROTOTYPES: DISABLE BOOT: { END foreach my $table (sort keys %tables) { print XS qq[#include "${table}.exh"\n]; } print XS "}\n"; close(XS); return "# Built $name.xs\n\n"; } sub postamble { my $self = shift; my $dir = $self->catdir($self->updir,'ucm'); 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) { $str .= " $table.c"; } $str .= "\n\n"; $str .= "$name\$(OBJ_EXT) : $name.c\n\n"; my $enc2xs = $self->catfile($self->updir,'bin', 'enc2xs'); foreach my $table (keys %tables) { my $numlines = 1; my $lengthsofar = length($str); my $continuator = ''; $str .= "$table.c : $enc2xs Makefile.PL"; foreach my $file (@{$tables{$table}}) { $str .= $continuator.' '.$self->catfile($dir,$file); if ( length($str)-$lengthsofar > 128*$numlines ) { $continuator .= " \\\n\t"; $numlines++; } else { $continuator = ''; } } my $plib = $self->{PERL_CORE} ? '"-I$(PERL_LIB)"' : ''; $plib .= " -MCross=$::Cross::platform" if defined $::Cross::platform; my $ucopts = '-"Q"'; $str .= qq{\n\t\$(PERL) $plib $enc2xs $ucopts -o \$\@ -f $table.fnm\n\n}; open (FILELIST, ">$table.fnm") || die "Could not open $table.fnm: $!"; foreach my $file (@{$tables{$table}}) { print FILELIST $self->catfile($dir,$file) . "\n"; } close(FILELIST); } return $str; }