Skip to content

Commit

Permalink
fix cvproto <5.10: store as static string.
Browse files Browse the repository at this point in the history
skip B B::C for @dl_modules.
  • Loading branch information
Reini Urban committed Dec 20, 2011
1 parent ebb2898 commit 239fba0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/B/C.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2764,7 +2764,11 @@ sub B::CV::save {
);
}
if ($len) {
$init->add( sprintf("SvPVX(&sv_list[%d]) = HEK_KEY(%s);", $sv_ix, $pvsym));
if ($PERL510) {
$init->add( sprintf("SvPVX(&sv_list[%d]) = HEK_KEY(%s);", $sv_ix, $pvsym));
} else {
$init->add( sprintf("SvPVX(&sv_list[%d]) = %s;", $sv_ix, cstring($pv)));
}
}
return $sym;
}
Expand Down Expand Up @@ -4069,9 +4073,9 @@ EOT
for my $c (qw(B B::C)) {
if (!$xsub{$c} and !$include_package{$c}) {
# (hopefully, see test 103)
warn "no dl_init for $c, not marked\n" if $verbose;
warn "no dl_init for $c, not marked\n" if $verbose and !$skip_package{$c};
# RT81332 pollute
@dl_modules = grep { $_ ne 'B' } @dl_modules;
@dl_modules = grep { $_ ne $c } @dl_modules;
# XXX Be sure to store the new @dl_modules
}
}
Expand Down

0 comments on commit 239fba0

Please sign in to comment.