summaryrefslogtreecommitdiff
path: root/perlapi.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-02 19:03:55 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-02 19:03:55 +0000
commitf1fac472816f68ec1eac2f84892d78b65a4598fb (patch)
tree5cdd155ab3819ec7d264f9e5b5d12af70460adf4 /perlapi.h
parent73c71df6a9051c0d8926b8aae2d513c596501d60 (diff)
downloadperl-f1fac472816f68ec1eac2f84892d78b65a4598fb.tar.gz
Add a new compile option PERL_DEBUG_READONLY_OPS which marks the optree
as read only (or as much of it as it practical). This makes it trivial to detect buggy code that is modifying the optree at runtime. p4raw-id: //depot/perl@30829
Diffstat (limited to 'perlapi.h')
-rw-r--r--perlapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/perlapi.h b/perlapi.h
index 38ebafb4ac..59bb04b25b 100644
--- a/perlapi.h
+++ b/perlapi.h
@@ -526,6 +526,10 @@ END_EXTERN_C
#define PL_sighandlerp (*Perl_Isighandlerp_ptr(aTHX))
#undef PL_signals
#define PL_signals (*Perl_Isignals_ptr(aTHX))
+#undef PL_slab_count
+#define PL_slab_count (*Perl_Islab_count_ptr(aTHX))
+#undef PL_slabs
+#define PL_slabs (*Perl_Islabs_ptr(aTHX))
#undef PL_sort_RealCmp
#define PL_sort_RealCmp (*Perl_Isort_RealCmp_ptr(aTHX))
#undef PL_splitstr