summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-26 17:26:17 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-26 17:26:17 +0000
commit35ff78560a01016ce2a3dffe29f18ce851bc0b90 (patch)
tree5b818a7ace6d9cdecf985b25efc5b20376ed15a5 /regcomp.c
parent873ef191be9d12eed8116e23926efe319c6ed859 (diff)
downloadperl-35ff78560a01016ce2a3dffe29f18ce851bc0b90.tar.gz
[asperl] more changes to satisfy non-debug VC build (C-API doesn't
build, and the testsuite still won't run) p4raw-id: //depot/asperl@1035
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 4afa40ff97..6815e13b2e 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2231,11 +2231,11 @@ regcurly(register char *s)
return TRUE;
}
-#ifdef DEBUGGING
STATIC regnode *
dumpuntil(regnode *start, regnode *node, regnode *last, SV* sv, I32 l)
{
+#ifdef DEBUGGING
register char op = EXACT; /* Arbitrary non-END op. */
register regnode *next, *onode;
@@ -2292,6 +2292,7 @@ dumpuntil(regnode *start, regnode *node, regnode *last, SV* sv, I32 l)
else if (op == WHILEM)
l--;
}
+#endif /* DEBUGGING */
return node;
}
@@ -2301,6 +2302,7 @@ dumpuntil(regnode *start, regnode *node, regnode *last, SV* sv, I32 l)
void
regdump(regexp *r)
{
+#ifdef DEBUGGING
SV *sv = sv_newmortal();
(void)dumpuntil(r->program, r->program + 1, NULL, sv, 0);
@@ -2353,6 +2355,7 @@ regdump(regexp *r)
PerlIO_printf(Perl_debug_log, "implicit ");
PerlIO_printf(Perl_debug_log, "minlen %ld ", (long) r->minlen);
PerlIO_printf(Perl_debug_log, "\n");
+#endif /* DEBUGGING */
}
/*
@@ -2361,6 +2364,7 @@ regdump(regexp *r)
void
regprop(SV *sv, regnode *o)
{
+#ifdef DEBUGGING
register char *p = 0;
sv_setpv(sv, ":");
@@ -2558,8 +2562,8 @@ regprop(SV *sv, regnode *o)
}
if (p)
sv_catpv(sv, p);
-}
#endif /* DEBUGGING */
+}
void
pregfree(struct regexp *r)