summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-29 00:17:41 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-29 00:17:41 +0000
commit866c78d1cf6feeffe34601c244c137d8b30ec2e4 (patch)
tree8975bc653553252df225cd2aa2b28eb0c197f213 /regexp.h
parent51aa200460138e2cc5ab024c9216177298546e81 (diff)
downloadperl-866c78d1cf6feeffe34601c244c137d8b30ec2e4.tar.gz
Wrap wrapped and wraplen from struct regexp in macros RW_WRAPPED() and
RX_WRAPLEN() to preserve source compatibility when they get moved around. p4raw-id: //depot/perl@32758
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/regexp.h b/regexp.h
index 37d92c5ccb..623a4bbb10 100644
--- a/regexp.h
+++ b/regexp.h
@@ -358,6 +358,9 @@ and check for NULL.
writers? Specifically, the value 1 assumes that the wrapped version always
has exactly one character at the end, a ')'. Will that always be true? */
#define RX_PRELEN(prog) ((prog)->wraplen - (prog)->pre_prefix - 1)
+#define RX_WRAPPED(prog) ((prog)->wrapped)
+#define RX_WRAPLEN(prog) ((prog)->wraplen)
+
#endif /* PLUGGABLE_RE_EXTENSION */