This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document CVf_UNIQUE flag better
authorDave Mitchell <davem@fdisolutions.com>
Tue, 20 Jan 2004 21:01:08 +0000 (21:01 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Tue, 20 Jan 2004 21:01:08 +0000 (21:01 +0000)
p4raw-id: //depot/perl@22185

cv.h

diff --git a/cv.h b/cv.h
index 74e2ade..1c8b93d 100644 (file)
--- a/cv.h
+++ b/cv.h
@@ -75,7 +75,10 @@ Returns the stash of the CV.
 #define CVf_CLONED     0x0002  /* a clone of one of those */
 #define CVf_ANON       0x0004  /* CvGV() can't be trusted */
 #define CVf_OLDSTYLE   0x0008
-#define CVf_UNIQUE     0x0010  /* can't be cloned */
+#define CVf_UNIQUE     0x0010  /* sub is only called once (eg PL_main_cv,
+                                * require, eval). Not to be confused
+                                * with the GVf_UNIQUE flag associated
+                                * with the :unique attribute */
 #define CVf_NODEBUG    0x0020  /* no DB::sub indirection for this CV
                                   (esp. useful for special XSUBs) */
 #define CVf_METHOD     0x0040  /* CV is explicitly marked as a method */