summaryrefslogtreecommitdiff
path: root/run.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-02 16:48:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-02 16:48:26 +0000
commit8fa7f3676ed75809365905727fbae97dc8767f29 (patch)
tree2c626750a9a8493a188833eb82d96b24e79fa03f /run.c
parenta126002e7fdcd66f0996dbe9b5b1c2d7960cf31b (diff)
downloadperl-8fa7f3676ed75809365905727fbae97dc8767f29.tar.gz
-Wall cleanup continues.
p4raw-id: //depot/perl@10392
Diffstat (limited to 'run.c')
-rw-r--r--run.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/run.c b/run.c
index 04302dbc83..533beace28 100644
--- a/run.c
+++ b/run.c
@@ -107,10 +107,11 @@ Perl_debop(pTHX_ OP *o)
return 0;
}
+#ifdef DEBUGGING
+
STATIC CV*
S_deb_curcv(pTHX_ I32 ix)
{
-#ifdef DEBUGGING
PERL_CONTEXT *cx = &cxstack[ix];
if (CxTYPE(cx) == CXt_SUB || CxTYPE(cx) == CXt_FORMAT)
return cx->blk_sub.cv;
@@ -122,11 +123,10 @@ S_deb_curcv(pTHX_ I32 ix)
return Nullcv;
else
return deb_curcv(ix - 1);
-#else
- return Nullcv;
-#endif /* DEBUGGING */
}
+#endif /* DEBUGGING */
+
void
Perl_watch(pTHX_ char **addr)
{
@@ -138,16 +138,18 @@ Perl_watch(pTHX_ char **addr)
#endif /* DEBUGGING */
}
+#ifdef DEBUGGING
+
STATIC void
S_debprof(pTHX_ OP *o)
{
-#ifdef DEBUGGING
if (!PL_profiledata)
Newz(000, PL_profiledata, MAXO, U32);
++PL_profiledata[o->op_type];
-#endif /* DEBUGGING */
}
+#endif /* DEBUGGING */
+
void
Perl_debprofdump(pTHX)
{