diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-29 00:17:41 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-29 00:17:41 +0000 |
commit | 866c78d1cf6feeffe34601c244c137d8b30ec2e4 (patch) | |
tree | 8975bc653553252df225cd2aa2b28eb0c197f213 /regexp.h | |
parent | 51aa200460138e2cc5ab024c9216177298546e81 (diff) | |
download | perl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |