summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-11-20 19:46:00 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-11-20 19:46:00 +0000
commit14300607918605648b68b2bcd08ef8d19aab8688 (patch)
treee289b89715cdd97f5b75e0a6189f020954d6aeb5 /perl.h
parentc7aff470b0f358ac6601ab30e8ab6009fd4a0eaa (diff)
parent1605159e3200c3bc3d4601c5655ecd71ca2ae8e7 (diff)
downloadperl-14300607918605648b68b2bcd08ef8d19aab8688.tar.gz
Integrate mainline
p4raw-id: //depot/perlio@13137
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 605894dbe6..26b6b17066 100644
--- a/perl.h
+++ b/perl.h
@@ -3106,6 +3106,18 @@ enum { /* pass one of these to get_vtbl */
#define RsPARA(sv) (SvPOK(sv) && ! SvCUR(sv))
#define RsRECORD(sv) (SvROK(sv) && (SvIV(SvRV(sv)) > 0))
+#ifdef DEBUGGING
+/* A struct for keeping various DEBUGGING related stuff
+ * neatly packed. Currently only scratch variables for
+ * constructing debug output are included. */
+struct perl_debug_pad {
+ SV pad[3];
+};
+
+#define PERL_DEBUG_PAD(i) &(PL_debug_pad.pad[i])
+#define PERL_DEBUG_PAD_ZERO(i) (sv_setpvn(PERL_DEBUG_PAD(i), "", 0), PERL_DEBUG_PAD(i))
+#endif
+
/* Enable variables which are pointers to functions */
typedef void (CPERLscope(*peep_t))(pTHX_ OP* o);
typedef regexp*(CPERLscope(*regcomp_t)) (pTHX_ char* exp, char* xend, PMOP* pm);