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 /
dist /
ExtUtils-ParseXS /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
data
[ DIR ]
drwxr-xr-x
2015-02-14 16:56
lib
[ DIR ]
drwxr-xr-x
2015-02-14 16:56
001-basic.t
4.94
KB
-r--r--r--
2014-12-27 11:48
002-more.t
3.61
KB
-r--r--r--
2014-12-27 11:48
003-usage.t
2.65
KB
-r--r--r--
2014-12-27 11:48
101-standard_typemap_locations.t
1.14
KB
-r--r--r--
2014-12-27 11:48
102-trim_whitespace.t
613
B
-r--r--r--
2014-12-27 11:48
103-tidy_type.t
654
B
-r--r--r--
2014-12-27 11:48
104-map_type.t
2.21
KB
-r--r--r--
2014-12-27 11:48
105-valid_proto_string.t
837
B
-r--r--r--
2014-12-27 11:48
106-process_typemaps.t
1.36
KB
-r--r--r--
2014-12-27 11:48
108-map_type.t
377
B
-r--r--r--
2014-12-27 11:48
109-standard_XS_defs.t
588
B
-r--r--r--
2014-12-27 11:49
110-assign_func_args.t
1.34
KB
-r--r--r--
2014-12-27 11:48
111-analyze_preprocessor_statements.t
367
B
-r--r--r--
2014-12-27 11:48
112-set_cond.t
171
B
-r--r--r--
2014-12-27 11:48
113-check_cond_preproc_statements.t
4.43
KB
-r--r--r--
2014-12-27 11:48
114-blurt_death_Warn.t
2.77
KB
-r--r--r--
2014-12-27 11:48
115-avoid-noise.t
536
B
-r--r--r--
2014-12-27 11:48
501-t-compile.t
221
B
-r--r--r--
2014-12-27 11:48
510-t-bare.t
4.88
KB
-r--r--r--
2014-12-27 11:48
511-t-whitespace.t
886
B
-r--r--r--
2014-12-27 11:48
512-t-file.t
1.75
KB
-r--r--r--
2014-12-27 11:48
513-t-merge.t
3.44
KB
-r--r--r--
2014-12-27 11:48
514-t-embed.t
381
B
-r--r--r--
2014-12-27 11:48
515-t-cmd.t
1.99
KB
-r--r--r--
2014-12-27 11:48
516-t-clone.t
1.38
KB
-r--r--r--
2014-12-27 11:48
517-t-targetable.t
5.17
KB
-r--r--r--
2014-12-27 11:48
600-t-compat.t
4.83
KB
-r--r--r--
2014-12-27 11:48
XSInclude.xsh
85
B
-r--r--r--
2014-12-27 11:48
XSMore.xs
2.69
KB
-r--r--r--
2014-12-27 11:48
XSTest.pm
119
B
-r--r--r--
2014-12-27 11:48
XSTest.xs
1.2
KB
-r--r--r--
2014-12-27 11:48
XSUsage.pm
117
B
-r--r--r--
2014-12-27 11:48
XSUsage.xs
1.02
KB
-r--r--r--
2014-12-27 11:48
XSWarn.xs
219
B
-r--r--r--
2014-12-27 11:48
pseudotypemap1
130
B
-r--r--r--
2014-12-27 11:48
typemap
7.45
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!/usr/bin/perl use strict; use warnings; # tests for the quick-n-dirty interface for XS inclusion use Test::More tests => 6; use File::Spec; use ExtUtils::Typemaps::Cmd; my $datadir = -d 't' ? File::Spec->catdir(qw/t data/) : 'data'; my $libdir = -d 't' ? File::Spec->catdir(qw/t lib/) : 'lib'; unshift @INC, $libdir; sub slurp { my $file = shift; open my $fh, '<', $file or die "Cannot open file '$file' for reading: $!"; local $/ = undef; return <$fh>; } sub permute (&@) { my $code = shift; my @idx = 0..$#_; while ( $code->(@_[@idx]) ) { my $p = $#idx; --$p while $idx[$p-1] > $idx[$p]; my $q = $p or return; push @idx, reverse splice @idx, $p; ++$q while $idx[$p-1] > $idx[$q]; @idx[$p-1,$q]=@idx[$q,$p-1]; } } SCOPE: { no warnings 'once'; ok(defined(*embeddable_typemap{CODE}), "function exported"); } my $start = "TYPEMAP: <<END_TYPEMAP;\n"; my $end = "\nEND_TYPEMAP\n"; is( embeddable_typemap(), "${start}TYPEMAP\n$end", "empty call to embeddable_typemap" ); my $typemap_file = File::Spec->catfile($datadir, "simple.typemap"); is( embeddable_typemap($typemap_file), $start . slurp($typemap_file) . $end, "embeddable typemap from file" ); my $foo_content = <<HERE; TYPEMAP myfoo* T_PV HERE is( embeddable_typemap("TypemapTest::Foo"), "$start$foo_content$end", "embeddable typemap from full module name" ); my $test_content = <<HERE; TYPEMAP mytype* T_SV HERE is( embeddable_typemap("Test"), "$start$test_content$end", "embeddable typemap from relative module name" ); SCOPE: { my $combined = embeddable_typemap("Test", "TypemapTest::Foo"); my @lines = ( 'myfoo* T_PV', 'mytype* T_SV', ); my @exp = map {"TYPEMAP\n" . join("\n", @$_) . "\n"} (\@lines, [reverse @lines]); ok(scalar(grep "$start$_$end" eq $combined, @exp), "combined both modules") or note("Actual output: '$combined'"); } # in theory, we should test # embeddable_typemap($typemap_file, "Test", "TypemapTest::Foo"), # but I can't be bothered.