summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-06 15:52:37 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-06 15:52:37 +0000
commit46ab32892be40c66fb42b377ee5ee1e8921e1db5 (patch)
treea8157b02cd2a7fdbce5dd6d6be45efb956a30792 /perl.c
parent4ab59fccd2ed87367a9c02575d4dd0b9d6b8b95a (diff)
downloadperl-46ab32892be40c66fb42b377ee5ee1e8921e1db5.tar.gz
Move all the regexp state variables into a single structure.
This allows it to be saved, restored and cloned with a single Copy() (but inevitably still some fixup) p4raw-id: //depot/perl@27732
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 8af44cc4aa..827844266c 100644
--- a/perl.c
+++ b/perl.c
@@ -3471,6 +3471,10 @@ S_init_interp(pTHX)
# undef PERLVARIC
#endif
+ /* As these are inside a structure, PERLVARI isn't capable of initialising
+ them */
+ PL_regindent = 0;
+ PL_reg_oldcurpm = PL_reg_curpm = PL_reg_poscache = PL_reg_starttry = NULL;
}
STATIC void