1 #if defined(PERL_EXT_RE_DEBUG) && !defined(DEBUGGING)
5 #define PERL_NO_GET_CONTEXT
10 extern regexp* my_regcomp (pTHX_ char* exp, char* xend, PMOP* pm);
11 extern I32 my_regexec (pTHX_ regexp* prog, char* stringarg, char* strend,
12 char* strbeg, I32 minend, SV* screamer,
13 void* data, U32 flags);
14 extern void my_regfree (pTHX_ struct regexp* r);
15 extern char* my_re_intuit_start (pTHX_ regexp *prog, SV *sv, char *strpos,
16 char *strend, U32 flags,
17 struct re_scream_pos_data_s *data);
18 extern SV* my_re_intuit_string (pTHX_ regexp *prog);
20 #define MY_CXT_KEY "re::_guts" XS_VERSION
23 int x_oldflag; /* debug flag */
28 #define oldflag (MY_CXT.x_oldflag)
34 PL_regexecp = Perl_regexec_flags;
35 PL_regcompp = Perl_pregcomp;
36 PL_regint_start = Perl_re_intuit_start;
37 PL_regint_string = Perl_re_intuit_string;
38 PL_regfree = Perl_pregfree;
41 PL_debug &= ~DEBUG_r_FLAG;
48 PL_colorset = 0; /* Allow reinspection of ENV. */
49 PL_regexecp = &my_regexec;
50 PL_regcompp = &my_regcomp;
51 PL_regint_start = &my_re_intuit_start;
52 PL_regint_string = &my_re_intuit_string;
53 PL_regfree = &my_regfree;
54 oldflag = PL_debug & DEBUG_r_FLAG;
55 PL_debug |= DEBUG_r_FLAG;
58 MODULE = re PACKAGE = re