diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-28 21:25:50 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-28 21:25:50 +0000 |
commit | 220fc49f9cd19ab777a22ef733671f0fbb81e6bd (patch) | |
tree | a91eae57fc34523216a9770d4b54a1f88987826b /regexp.h | |
parent | f19b4ba939a9fcdd83b091f4baa1c12b87ff9886 (diff) | |
download | perl-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 'regexp.h')
-rw-r--r-- | regexp.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -353,6 +353,10 @@ and check for NULL. ? RX_MATCH_COPIED_on(prog) \ : RX_MATCH_COPIED_off(prog)) +/* For source compatibility. We used to store these explicitly. */ +#define RX_PRECOMP(prog) ((prog)->precomp) +#define RX_PRELEN(prog) ((prog)->prelen) + #endif /* PLUGGABLE_RE_EXTENSION */ /* Stuff that needs to be included in the plugable extension goes below here */ |