summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-22 18:26:21 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-22 18:26:21 +0000
commit24792b8dabd61fb81a064d275b67bc65123a8d4c (patch)
treed586244a6482f635ca0ebf02092f2c76ff71c8d9 /handy.h
parentd0cc0e64ef59c3e62362fbf0dc35c7753c137553 (diff)
downloadperl-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
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/handy.h b/handy.h
index 4903595b68..332d85cab7 100644
--- a/handy.h
+++ b/handy.h
@@ -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