The new regexp compilation function must be added to the engine structure.
[p5sagit/p5-mst-13.2.git] / ext / re / re.xs
index 8847901..284a4e9 100644 (file)
@@ -12,6 +12,7 @@
 START_EXTERN_C
 
 extern regexp* my_regcomp (pTHX_ char* exp, char* xend, PMOP* pm);
+extern regexp*  my_re_compile(pTHX_ char *exp, char *xend, PMOP *pm);
 extern I32     my_regexec (pTHX_ regexp* prog, char* stringarg, char* strend,
                            char* strbeg, I32 minend, SV* screamer,
                            void* data, U32 flags);
@@ -32,6 +33,7 @@ END_EXTERN_C
 
 const struct regexp_engine my_reg_engine = { 
         my_regcomp, 
+       my_re_compile,
         my_regexec, 
         my_re_intuit_start, 
         my_re_intuit_string,