summaryrefslogtreecommitdiff
path: root/cv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-23 09:22:01 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-23 09:22:01 +0000
commit3ae1b22641a16d4d08aba688616c0f7cefb7d1f5 (patch)
tree328fb3e73472d14b47df8b7777382e58d14ab433 /cv.h
parent3134ad69d93db50cabc8276feb0660bf859dbad1 (diff)
downloadperl-3ae1b22641a16d4d08aba688616c0f7cefb7d1f5.tar.gz
Deprecate (and remove core use of ) Nullav, Nullcv, Nullgv, Nullhe,
Nullhek and Nullhv. Nullop is going to be a bit less simple. p4raw-id: //depot/perl@33051
Diffstat (limited to 'cv.h')
-rw-r--r--cv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cv.h b/cv.h
index 806fa826ac..aca3748936 100644
--- a/cv.h
+++ b/cv.h
@@ -28,6 +28,8 @@ typedef struct {
=for apidoc AmU||Nullcv
Null CV pointer.
+(deprecated - use C<(CV *)NULL> instead)
+
=head1 CV Manipulation Functions
=for apidoc Am|HV*|CvSTASH|CV* cv
@@ -36,7 +38,9 @@ Returns the stash of the CV.
=cut
*/
-#define Nullcv Null(CV*)
+#ifndef PERL_CORE
+# define Nullcv Null(CV*)
+#endif
#define CvSTASH(sv) ((XPVCV*)SvANY(sv))->xcv_stash
#define CvSTART(sv) ((XPVCV*)SvANY(sv))->xcv_start_u.xcv_start