Skip to content

Commit

Permalink
BC: special-case padl for < 5.17
Browse files Browse the repository at this point in the history
Do not try to access the three new newpadlx, padl_* methods, as older perls are missing the
API: Perl_pad_new, PadlistARRAY()
  • Loading branch information
Reini Urban committed Nov 7, 2012
1 parent 7456b88 commit 6e3faa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytecode.pl
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ package B::Asmdata;
$unsupp++ if $pver < $ver; # ver 10: skip if pvar lower than 10;
}
}
if (!$unsupp or $] >= 5.007) {
if (!$unsupp or ($] >= 5.007 and $insn !~ /padl/)) {
$insn_name[$insn_num] = $insn;
push @insndata, [$insn_num, $unsupp, $insn, $lvalue, $rvalcast, $argtype, $flags];
# Find the next unused instruction number
Expand Down

0 comments on commit 6e3faa2

Please sign in to comment.