summaryrefslogtreecommitdiff
path: root/run.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 /run.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 'run.c')
-rw-r--r--run.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/run.c b/run.c
index ac9752ba5d..811e41ac52 100644
--- a/run.c
+++ b/run.c
@@ -32,8 +32,6 @@ runops_standard(void) {
return 0;
}
-#ifdef DEBUGGING
-
dEXT char **watchaddr = 0;
dEXT char *watchok;
@@ -42,7 +40,9 @@ static void debprof _((OP*o));
#endif
int
-runops_debug(void) {
+runops_debug(void)
+{
+#ifdef DEBUGGING
dTHR;
if (!op) {
warn("NULL OP IN RUN");
@@ -62,11 +62,15 @@ runops_debug(void) {
TAINT_NOT;
return 0;
+#else
+ return runops_standard();
+#endif /* DEBUGGING */
}
I32
debop(OP *o)
{
+#ifdef DEBUGGING
SV *sv;
deb("%s", op_name[o->op_type]);
switch (o->op_type) {
@@ -88,29 +92,35 @@ debop(OP *o)
break;
}
PerlIO_printf(Perl_debug_log, "\n");
+#endif /* DEBUGGING */
return 0;
}
void
watch(char **addr)
{
+#ifdef DEBUGGING
watchaddr = addr;
watchok = *addr;
PerlIO_printf(Perl_debug_log, "WATCHING, %lx is currently %lx\n",
(long)watchaddr, (long)watchok);
+#endif /* DEBUGGING */
}
STATIC void
debprof(OP *o)
{
+#ifdef DEBUGGING
if (!profiledata)
New(000, profiledata, MAXO, U32);
++profiledata[o->op_type];
+#endif /* DEBUGGING */
}
void
debprofdump(void)
{
+#ifdef DEBUGGING
unsigned i;
if (!profiledata)
return;
@@ -119,7 +129,5 @@ debprofdump(void)
PerlIO_printf(Perl_debug_log,
"%u\t%lu\n", i, (unsigned long)profiledata[i]);
}
-}
-
#endif /* DEBUGGING */
-
+}