summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-09 05:20:31 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-09 05:20:31 +0000
commitd06ea78cdb5afedf2e1a85ff54e3bfc5c519b3c5 (patch)
tree22312ea50e4a3a4106ee988018c50871c1267077 /regcomp.c
parent3f9aafa052abab5917516312e3f78b01a9ea73c3 (diff)
downloadperl-d06ea78cdb5afedf2e1a85ff54e3bfc5c519b3c5.tar.gz
applied patch from Ilya, tweaked some to get clean static build of
the ext/re stuff (untested on win32) p4raw-id: //depot/perl@1393
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 663933da64..f9e253926b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -20,9 +20,13 @@
*/
#ifdef IN_XSUB_RE
+/* We *really* need to overwrite these symbols: */
# define Perl_pregcomp my_regcomp
# define Perl_regdump my_regdump
# define Perl_regprop my_regprop
+/* *These* symbols are masked to allow static link. */
+# define Perl_pregfree my_regfree
+# define Perl_regnext my_regnext
#endif
/*SUPPRESS 112*/
@@ -61,7 +65,10 @@
*/
#include "EXTERN.h"
#include "perl.h"
-#include "INTERN.h"
+
+#ifndef IN_XSUB_RE
+# include "INTERN.h"
+#endif
#define REG_COMP_C
#include "regcomp.h"