summaryrefslogtreecommitdiff
path: root/perlapi.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-16 16:51:08 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-16 16:51:08 +0000
commitf180df804d1cde858e3e94db2f42efcc697d07d9 (patch)
tree57059df321dc566c4fb334953a3265cfeb2f679e /perlapi.h
parentcc0fca54a8335062a27e12be15bddf587362a0b0 (diff)
downloadperl-f180df804d1cde858e3e94db2f42efcc697d07d9.tar.gz
introduce illegal symbols into null package so that gv_fetchpv(...,TRUE)
always returns a valid GV even when the symbol is trapped by strictures (avoids coredumps) TODO: the C<package;> hack needs similar treatment p4raw-id: //depot/perl@5908
Diffstat (limited to 'perlapi.h')
-rw-r--r--perlapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlapi.h b/perlapi.h
index 5e5ac2825b..634634c047 100644
--- a/perlapi.h
+++ b/perlapi.h
@@ -382,6 +382,8 @@ START_EXTERN_C
#define PL_nthreads (*Perl_Inthreads_ptr(aTHXo))
#undef PL_nthreads_cond
#define PL_nthreads_cond (*Perl_Inthreads_cond_ptr(aTHXo))
+#undef PL_nullstash
+#define PL_nullstash (*Perl_Inullstash_ptr(aTHXo))
#undef PL_numeric_local
#define PL_numeric_local (*Perl_Inumeric_local_ptr(aTHXo))
#undef PL_numeric_name