diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-22 18:26:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-22 18:26:21 +0000 |
commit | 24792b8dabd61fb81a064d275b67bc65123a8d4c (patch) | |
tree | d586244a6482f635ca0ebf02092f2c76ff71c8d9 | |
parent | d0cc0e64ef59c3e62362fbf0dc35c7753c137553 (diff) | |
download | perl-24792b8dabd61fb81a064d275b67bc65123a8d4c.tar.gz |
Remove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_na
when PERL_CORE is defined. (Which, "obviously", is only in code
within the perl source tree, which we control). Nullop remains, and
would be moderately invasive to remove.
p4raw-id: //depot/perl@32707
-rw-r--r-- | handy.h | 14 | ||||
-rw-r--r-- | op.h | 2 | ||||
-rw-r--r-- | perl.h | 5 | ||||
-rw-r--r-- | pod/perlapi.pod | 4 | ||||
-rw-r--r-- | sv.c | 2 |
5 files changed, 17 insertions, 10 deletions
@@ -19,23 +19,25 @@ #endif #endif -#define Null(type) ((type)NULL) +#ifndef PERL_CORE +# define Null(type) ((type)NULL) /* =head1 Handy Values =for apidoc AmU||Nullch -Null character pointer. +Null character pointer. (No longer available when C<PERL_CORE> is defined.) =for apidoc AmU||Nullsv -Null SV pointer. +Null SV pointer. (No longer available when C<PERL_CORE> is defined.) =cut */ -#define Nullch Null(char*) -#define Nullfp Null(PerlIO*) -#define Nullsv Null(SV*) +# define Nullch Null(char*) +# define Nullfp Null(PerlIO*) +# define Nullsv Null(SV*) +#endif #ifdef TRUE #undef TRUE @@ -509,7 +509,7 @@ struct loop { #define cSVOPo_sv cSVOPx_sv(o) #define kSVOP_sv cSVOPx_sv(kid) -#define Nullop Null(OP*) +#define Nullop ((OP*)NULL) /* Lowest byte-and-a-bit of PL_opargs */ #define OA_MARK 1 @@ -4723,6 +4723,11 @@ START_EXTERN_C END_EXTERN_C #endif +#ifdef PERL_CORE +/* All core uses now exterminated. Ensure no zombies can return: */ +# undef PL_na +#endif + #if defined(WIN32) /* Now all the config stuff is setup we can include embed.h */ # include "embed.h" diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 664f42ca5c..df9572a87f 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -1405,7 +1405,7 @@ Found in file av.h =item Nullch X<Nullch> -Null character pointer. +Null character pointer. (No longer available when C<PERL_CORE> is defined.) =for hackers Found in file handy.h @@ -1429,7 +1429,7 @@ Found in file hv.h =item Nullsv X<Nullsv> -Null SV pointer. +Null SV pointer. (No longer available when C<PERL_CORE> is defined.) =for hackers Found in file handy.h @@ -11503,7 +11503,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, PL_Sv = NULL; PL_Xpv = (XPV*)NULL; - PL_na = proto_perl->Ina; + my_perl->Ina = proto_perl->Ina; PL_statbuf = proto_perl->Istatbuf; PL_statcache = proto_perl->Istatcache; |