Message-Id: <Pine.SUN.3.96.
980713164922.28314B-100000@newton.phys>
Subject: Re: _70 and Devel::RE
p4raw-id: //depot/perl@1477
MAN3PODS => ' ', # Pods will be built by installman.
XSPROTOARG => '-noprototypes',
OBJECT => 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)',
- DEFINE => '-DDEBUGGING -DIN_XSUB_RE',
+ DEFINE => '-DPERL_EXT_RE_BUILD',
clean => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
);
+/* We need access to debugger hooks */
+#ifndef DEBUGGING
+# define DEBUGGING
+#endif
+
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
* with the POSIX routines of the same names.
*/
-#ifdef IN_XSUB_RE
+#ifdef PERL_EXT_RE_BUILD
+/* need to replace pregcomp et al, so enable that */
+# ifndef PERL_IN_XSUB_RE
+# define PERL_IN_XSUB_RE
+# endif
+/* need access to debugger hooks */
+# ifndef DEBUGGING
+# define DEBUGGING
+# endif
+#endif
+
+#ifdef PERL_IN_XSUB_RE
/* We *really* need to overwrite these symbols: */
# define Perl_pregcomp my_regcomp
# define Perl_regdump my_regdump
#include "EXTERN.h"
#include "perl.h"
-#ifndef IN_XSUB_RE
+#ifndef PERL_IN_XSUB_RE
# include "INTERN.h"
#endif
* with the POSIX routines of the same names.
*/
-#ifdef IN_XSUB_RE
+#ifdef PERL_EXT_RE_BUILD
+/* need to replace pregcomp et al, so enable that */
+# ifndef PERL_IN_XSUB_RE
+# define PERL_IN_XSUB_RE
+# endif
+/* need access to debugger hooks */
+# ifndef DEBUGGING
+# define DEBUGGING
+# endif
+#endif
+
+#ifdef PERL_IN_XSUB_RE
/* We *really* need to overwrite these symbols: */
# define Perl_regexec_flags my_regexec
# define Perl_regdump my_regdump