summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJim Cromie <jcromie@cpan.org>2005-07-06 08:19:53 -0600
committerSteve Hay <SteveHay@planit.com>2005-07-08 16:35:10 +0000
commita02a5408b2f199007c4dcb74559cc79066307ada (patch)
treeb5456b7513dec78b81e08371fbd59138e2edfe72 /regexec.c
parentbdf3085f9fca00a6148ef3f26060d442844b64bd (diff)
downloadperl-a02a5408b2f199007c4dcb74559cc79066307ada.tar.gz
Re: janitorial work ? [patch]
Message-ID: <42CC3CE9.5050606@divsol.com> (reverted all dual-lived modules since they must work with older perls too so must wait for a new Devel::PPPort) p4raw-id: //depot/perl@25101
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index f705021616..f302259fcc 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2146,7 +2146,7 @@ S_regtry(pTHX_ regexp *prog, char *startpos)
SAVEDESTRUCTOR_X(restore_pos, 0);
}
if (!PL_reg_curpm) {
- Newz(22, PL_reg_curpm, 1, PMOP);
+ Newxz(PL_reg_curpm, 1, PMOP);
#ifdef USE_ITHREADS
{
SV* repointer = newSViv(0);
@@ -2192,7 +2192,7 @@ S_regtry(pTHX_ regexp *prog, char *startpos)
if(PL_reg_start_tmp)
Renew(PL_reg_start_tmp, PL_reg_start_tmpl, char*);
else
- New(22, PL_reg_start_tmp, PL_reg_start_tmpl, char*);
+ Newx(PL_reg_start_tmp, PL_reg_start_tmpl, char*);
}
/* XXXX What this code is doing here?!!! There should be no need
@@ -3554,7 +3554,7 @@ S_regmatch(pTHX_ regnode *prog)
}
else {
PL_reg_poscache_size = size;
- Newz(29, PL_reg_poscache, size, char);
+ Newxz(PL_reg_poscache, size, char);
}
DEBUG_EXECUTE_r(
PerlIO_printf(Perl_debug_log,