summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-08-19 12:10:01 +0100
committerDavid Mitchell <davem@iabyn.com>2012-06-13 13:25:49 +0100
commit74529a43ce600615669683dcaf9e9521d374031c (patch)
tree0903f5576c093d42c766607eceb2f318d7f1768b /proto.h
parentf8b2cf8affb6b075db359edf9986904b971337f8 (diff)
downloadperl-74529a43ce600615669683dcaf9e9521d374031c.tar.gz
add Perl_re_op_compile function
Make Perl_re_compile() a thin wrapper around a new function, Perl_re_op_compile(). This function can take either a string pattern or a list of ops. Then make pmruntime() pass a list of ops directly to it, rather concatenating all the consts into a single string and passing the const to Perl_re_compile(). For now, Perl_re_op_compile just does the same: if its passed an op tree rather than an SV, then it just concats the consts. So this is is just the next step towards eventually allowing the regex engine to use the ops directly.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index e52b31bf22..dd991f30ee 100644
--- a/proto.h
+++ b/proto.h
@@ -3150,6 +3150,7 @@ PERL_CALLCONV SV* Perl_re_intuit_string(pTHX_ REGEXP *const r)
#define PERL_ARGS_ASSERT_RE_INTUIT_STRING \
assert(r)
+PERL_CALLCONV REGEXP* Perl_re_op_compile(pTHX_ SV * const pattern, OP *expr, U32 flags);
PERL_CALLCONV Malloc_t Perl_realloc(Malloc_t where, MEM_SIZE nbytes)
__attribute__malloc__
__attribute__warn_unused_result__;