$header .= B::Asmdata::PUT_strconst(qq["$ByteLoader::VERSION"]);
$header .= B::Asmdata::PUT_U32($Config{ivsize});
$header .= B::Asmdata::PUT_U32($Config{ptrsize});
- $header .= B::Asmdata::PUT_strconst(sprintf(qq["0x%s"], $Config{byteorder}));
-
$header;
}
use B::Asmdata qw(%insn_data @insn_name);
-our( $magic, $archname, $blversion, $ivsize, $ptrsize, $byteorder );
+our( $magic, $archname, $blversion, $ivsize, $ptrsize );
sub dis_header($){
my( $fh ) = @_;
$blversion = $fh->GET_strconst();
$ivsize = $fh->GET_U32();
$ptrsize = $fh->GET_U32();
- $byteorder = $fh->GET_strconst();
}
sub get_header(){
- return( $magic, $archname, $blversion, $ivsize, $ptrsize, $byteorder );
+ return( $magic, $archname, $blversion, $ivsize, $ptrsize);
}
sub disassemble_fh {
}
chdir 't' if -d 't';
@INC = qw(../lib);
+ use Config;
+ if ($Config{ccflags} =~ /-DPERL_COPY_ON_WRITE/) {
+ print "1..0 # skip - no COW for now\n";
+ exit 0;
+ }
require './test.pl'; # for run_perl()
}
use strict;
my $foo = sub {$i = shift if @_};
&$foo(3);
############################################################
-$_="\xff\xff"; use utf8; utf8::encode $_; print $_
->>>>
-\xc3\xbf\xc3\xbf
-############################################################
$x="Cannot use"; print index $x, "Can"
>>>>
0
if (sz != PTRSIZE) { \
HEADER_FAIL("different PTRSIZE"); \
} \
- BGET_strconst(str); /* byteorder */ \
- if (strNE(str, STRINGIFY(BYTEORDER))) { \
- HEADER_FAIL("different byteorder"); \
- } \
} STMT_END
my $bytecompile =
"$perl $testswitch $switch -I../lib $bswitch".
"-o$test.plc $test 2>/dev/null &&".
- "$perl $testswitch $switch $utf $test.plc $redir|";
+ "$perl $testswitch $switch -I../lib $utf $test.plc $redir|";
open(RESULTS,$bytecompile)
or print "can't byte-compile '$bytecompile': $!.\n";
}