summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2014-09-22 15:19:50 +0100
committerDavid Mitchell <davem@iabyn.com>2014-09-22 15:22:50 +0100
commit2c39754a51ff0311c18539adf3808a52242313c3 (patch)
treeafd7e36babae4a6a65518ec6047642c072ad8393
parent9fa5aa9143471cda101c2ac9e87f7bf90ccd0b36 (diff)
downloadperl-2c39754a51ff0311c18539adf3808a52242313c3.tar.gz
SvFLAGS: informally reserve a bit
SvFAKE is currently unused on HVs, so I'm marking it as mine. Hopefully it will eventually get used for vtables on HVs. I've also improved the description of SVs_TEMP.
-rw-r--r--sv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sv.h b/sv.h
index 747962423c..8876449f2f 100644
--- a/sv.h
+++ b/sv.h
@@ -369,7 +369,7 @@ perform the upgrade if necessary. See C<svtype>.
#define SVpad_TYPED 0x00020000 /* pad name is a Typed Lexical */
#define SVs_PADMY 0x00040000 /* in use a "my" variable */
#define SVpad_OUR 0x00040000 /* pad name is "our" instead of "my" */
-#define SVs_TEMP 0x00080000 /* string is stealable? */
+#define SVs_TEMP 0x00080000 /* mortal (implies string is stealable) */
#define SVs_OBJECT 0x00100000 /* is "blessed" */
#define SVs_GMG 0x00200000 /* has magical get method */
#define SVs_SMG 0x00400000 /* has magical set method */
@@ -382,7 +382,9 @@ perform the upgrade if necessary. See C<svtype>.
[CvEVAL(cv), CvSPECIAL(cv)]
3: On a pad name SV, that slot in the
frame AV is a REFCNT'ed reference
- to a lexical from "outside". */
+ to a lexical from "outside".
+ 4: HV: informally reserved by DAPM
+ for vtables */
#define SVf_OOK 0x02000000 /* has valid offset value. For a PVHV this
means that a hv_aux struct is present
after the main array */