summaryrefslogtreecommitdiff
path: root/embed.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 /embed.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 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index b565bb5de2..c95756bc1b 100644
--- a/embed.h
+++ b/embed.h
@@ -1175,6 +1175,7 @@
#define parser_free(a) Perl_parser_free(aTHX_ a)
#define peep(a) Perl_peep(aTHX_ a)
#define pmruntime(a,b,c) Perl_pmruntime(aTHX_ a,b,c)
+#define re_op_compile(a,b,c) Perl_re_op_compile(aTHX_ a,b,c)
#define refcounted_he_chain_2hv(a,b) Perl_refcounted_he_chain_2hv(aTHX_ a,b)
#define refcounted_he_fetch_pv(a,b,c,d) Perl_refcounted_he_fetch_pv(aTHX_ a,b,c,d)
#define refcounted_he_fetch_pvn(a,b,c,d,e) Perl_refcounted_he_fetch_pvn(aTHX_ a,b,c,d,e)