summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-11-13 00:29:41 +0100
committerSteve Peters <steve@fisharerojo.org>2006-11-13 02:19:12 +0000
commitde8c53012b7e614137ab875e0d58a92474b317ce (patch)
treecc24fc09cc1af2e140a8d29a1bcd652cba6c4b00 /regexp.h
parent7834bb7eff465724a885b368420973bce2d27483 (diff)
downloadperl-de8c53012b7e614137ab875e0d58a92474b317ce.tar.gz
Regex Utility Functions and Substituion Fix (XML::Twig core dump)
Message-ID: <9b18b3110611121429g1fc9d6c1t4007dc711f9e8396@mail.gmail.com> Plus a couple tweaks to ext/re/re.pm and t/op/pat.t to those patches to apply cleanly. p4raw-id: //depot/perl@29252
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index f74f2af05b..5e3e947cb9 100644
--- a/regexp.h
+++ b/regexp.h
@@ -47,7 +47,8 @@ typedef struct regexp {
U32 *offsets; /* offset annotations 20001228 MJD */
I32 sublen; /* Length of string pointed by subbeg */
I32 refcnt;
- I32 minlen; /* mininum possible length of $& */
+ I32 minlen; /* mininum possible length of string to match */
+ I32 minlenret; /* mininum possible length of $& */
I32 prelen; /* length of precomp */
U32 nparens; /* number of parentheses */
U32 lastparen; /* last paren matched */
@@ -76,6 +77,7 @@ typedef struct regexp_engine {
struct re_scream_pos_data_s *data);
SV* (*checkstr) (pTHX_ regexp *prog);
void (*free) (pTHX_ struct regexp* r);
+ char* (*as_str) (pTHX_ MAGIC *mg, STRLEN *lp, U32 *flags, I32 *haseval);
#ifdef USE_ITHREADS
regexp* (*dupe) (pTHX_ const regexp *r, CLONE_PARAMS *param);
#endif