diff options
author | Yves Orton <demerphq@gmail.com> | 2006-11-13 00:29:41 +0100 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-11-13 02:19:12 +0000 |
commit | de8c53012b7e614137ab875e0d58a92474b317ce (patch) | |
tree | cc24fc09cc1af2e140a8d29a1bcd652cba6c4b00 /regexp.h | |
parent | 7834bb7eff465724a885b368420973bce2d27483 (diff) | |
download | perl-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |