summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-06-18 07:10:19 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-06-18 07:10:19 +0000
commitfd181c75661f7c3d766abc506c3ae2f11670bbaf (patch)
tree14968c4711aafc3a9cea2a640c9d24c256a85951 /regexec.c
parent45b989d7833b483a43f888d8263f4fdfbd93b1d0 (diff)
downloadperl-fd181c75661f7c3d766abc506c3ae2f11670bbaf.tar.gz
Allow redirection of debug messages
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 6a29d7f032..818d9dc700 100644
--- a/regexec.c
+++ b/regexec.c
@@ -590,7 +590,7 @@ char *prog;
#define sayNO goto no
#define saySAME(x) if (x) goto yes; else goto no
if (regnarrate) {
- fprintf(stderr, "%*s%2d%-8.8s\t<%.10s>\n", regindent*2, "",
+ fprintf(Perl_debug_log, "%*s%2d%-8.8s\t<%.10s>\n", regindent*2, "",
scan - regprogram, regprop(scan), locinput);
}
#else
@@ -806,7 +806,7 @@ char *prog;
#ifdef DEBUGGING
if (regnarrate)
- fprintf(stderr, "%*s %d %lx\n", regindent*2, "",
+ fprintf(Perl_debug_log, "%*s %d %lx\n", regindent*2, "",
n, (long)cc);
#endif