summaryrefslogtreecommitdiff
path: root/cv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-05-02 15:55:25 +0000
committerNicholas Clark <nick@ccl4.org>2006-05-02 15:55:25 +0000
commit77004dee2553ce034a8a58b2b2849e3656df46c3 (patch)
tree5c6f226952cfe75df4a5ef743bc577879e0642b3 /cv.h
parent284edc75255273afc54ce4bfa99576ccc7d34c45 (diff)
downloadperl-77004dee2553ce034a8a58b2b2849e3656df46c3.tar.gz
Fix bug in DynaLoader, which has been passing a filename in dynamic
storage to newXS() seemingly forever. This involves creating newXS_flags(), with the first flag being "arrange to copy the filename and free it at the right time". p4raw-id: //depot/perl@28063
Diffstat (limited to 'cv.h')
-rw-r--r--cv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cv.h b/cv.h
index 219686bada..65a34571f9 100644
--- a/cv.h
+++ b/cv.h
@@ -202,6 +202,9 @@ Returns the stash of the CV.
#define CvISXSUB_on(cv) (CvFLAGS(cv) |= CVf_ISXSUB)
#define CvISXSUB_off(cv) (CvFLAGS(cv) &= ~CVf_ISXSUB)
+/* Flags for newXS_flags */
+#define XS_DYNAMIC_FILENAME 0x01 /* The filename isn't static */
+
/*
=head1 CV reference counts and CvOUTSIDE