summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-28 21:25:50 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-28 21:25:50 +0000
commit220fc49f9cd19ab777a22ef733671f0fbb81e6bd (patch)
treea91eae57fc34523216a9770d4b54a1f88987826b /pp_hot.c
parentf19b4ba939a9fcdd83b091f4baa1c12b87ff9886 (diff)
downloadperl-220fc49f9cd19ab777a22ef733671f0fbb81e6bd.tar.gz
Wrap all accesses to the members precomp and prelen of struct regexp in
the macros RX_PRECOMP() and RX_PRELEN(). This will allow us to reduce the regexp storage overhead by computing them at retrieve time. p4raw-id: //depot/perl@32753
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 21582b8427..5cc80877cd 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1261,7 +1261,7 @@ PP(pp_match)
/* empty pattern special-cased to use last successful pattern if possible */
- if (!rx->prelen && PL_curpm) {
+ if (!RX_PRELEN(rx) && PL_curpm) {
pm = PL_curpm;
rx = PM_GETRE(pm);
}
@@ -2091,7 +2091,7 @@ PP(pp_subst)
position, once with zero-length,
second time with non-zero. */
- if (!rx->prelen && PL_curpm) {
+ if (!RX_PRELEN(rx) && PL_curpm) {
pm = PL_curpm;
rx = PM_GETRE(pm);
}