Skip to content

Commit

Permalink
r-magic: const and latefree pregcomp arguments (Carp::Clan, Moose, Cl…
Browse files Browse the repository at this point in the history
…ass::MOP, Module::Build, ExtUtils::Install, Template::Stash)

git-svn-id: http://perl-compiler.googlecode.com/svn/trunk@861 ed534f1a-1453-0410-ab30-dfc593a8b23c
  • Loading branch information
Reini Urban committed Jan 6, 2011
1 parent a8cf661 commit f203c11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/B/C.pm
Expand Up @@ -1820,10 +1820,11 @@ sub B::PVMG::save_magic {
}
my $pmsym = $pmop->save;
if ($PERL510) {
push @static_free, $resym;
$init->add( split /\n/,
sprintf <<CODE, $pmop->pmflags, $$sv, cchar($type), cstring($ptr), $len );
{
REGEXP* rx = CALLREGCOMP($resym, %d);
REGEXP* rx = CALLREGCOMP((SV* const)$resym, %d);
sv_magic((SV*)s\\_%x, (SV*)rx, %s, %s, %d);
}
CODE
Expand All @@ -1833,7 +1834,7 @@ CODE
$init->add( split /\n/,
sprintf <<CODE, $$sv, cchar($type), cstring($ptr), $len );
{
REGEXP* rx = pregcomp($resym, $resym + $relen, (PMOP*)$pmsym);
REGEXP* rx = pregcomp((char*)$resym,(char*)($resym + $relen), (PMOP*)$pmsym);
sv_magic((SV*)s\\_%x, (SV*)rx, %s, %s, %d);
}
CODE
Expand Down
1 change: 1 addition & 0 deletions t/testm.sh
Expand Up @@ -17,6 +17,7 @@ function help {
echo " -k keep temp. files on PASS"
echo " -D<arg> add debugging flags"
echo " -f<arg> add optimisation flags"
echo " -O<arg> add optimisation flags"
echo " -l log"
echo " -o orig. no -Mblib, use installed modules (5.6, 5.8)"
echo " -t run the module tests also, not only use Module (experimental)"
Expand Down

0 comments on commit f203c11

Please sign in to comment.