3 * Copyright (c) 1991-1999, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
15 * "Away now, Shadowfax! Run, greatheart, run as you have never run before!
16 * Now we are come to the lands where you were foaled, and every stone you
17 * know. Run now! Hope is in speed!" --Gandalf
21 Perl_runops_standard(pTHX)
25 while ( PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX) ) ;
32 Perl_runops_debug(pTHX)
37 if (ckWARN_d(WARN_DEBUGGING))
38 Perl_warner(aTHX_ WARN_DEBUGGING, "NULL OP IN RUN");
44 if (PL_watchaddr != 0 && *PL_watchaddr != PL_watchok)
45 PerlIO_printf(Perl_debug_log, "WARNING: %lx changed from %lx to %lx\n",
46 (long)PL_watchaddr, (long)PL_watchok, (long)*PL_watchaddr);
48 DEBUG_t(debop(PL_op));
49 DEBUG_P(debprof(PL_op));
51 } while ( PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX) );
56 return runops_standard();
57 #endif /* DEBUGGING */
61 Perl_debop(pTHX_ OP *o)
66 Perl_deb(aTHX_ "%s", PL_op_name[o->op_type]);
69 PerlIO_printf(Perl_debug_log, "(%s)", SvPEEK(cSVOPo->op_sv));
75 gv_fullname3(sv, cGVOPo->op_gv, Nullch);
76 PerlIO_printf(Perl_debug_log, "(%s)", SvPV(sv, n_a));
80 PerlIO_printf(Perl_debug_log, "(NULL)");
85 PerlIO_printf(Perl_debug_log, "\n");
86 #endif /* DEBUGGING */
91 Perl_watch(pTHX_ char **addr)
97 PerlIO_printf(Perl_debug_log, "WATCHING, %lx is currently %lx\n",
98 (long)PL_watchaddr, (long)PL_watchok);
99 #endif /* DEBUGGING */
103 S_debprof(pTHX_ OP *o)
107 Newz(000, PL_profiledata, MAXO, U32);
108 ++PL_profiledata[o->op_type];
109 #endif /* DEBUGGING */
113 Perl_debprofdump(pTHX)
119 for (i = 0; i < MAXO; i++) {
120 if (PL_profiledata[i])
121 PerlIO_printf(Perl_debug_log,
122 "%5lu %s\n", (unsigned long)PL_profiledata[i],
125 #endif /* DEBUGGING */