diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-07-01 12:33:39 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-07-01 12:33:39 +0000 |
commit | 2e9f07a2fdf1a2d5a1f1e89b37d3b33b32ed2a72 (patch) | |
tree | 0c5c757a31cc7186f8ae31a5f79c30b074d4a8ad /sv.h | |
parent | f4c21a45d6a63257ddc67da8a232ebd93cbc48bc (diff) | |
download | perl-2e9f07a2fdf1a2d5a1f1e89b37d3b33b32ed2a72.tar.gz |
Add some information to the comments describing SV flag bits.
p4raw-id: //depot/perl@31512
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -344,15 +344,20 @@ perform the upgrade if necessary. See C<svtype>. #define PRIVSHIFT 4 /* (SVp_?OK >> PRIVSHIFT) == SVf_?OK */ #define SVf_AMAGIC 0x10000000 /* has magical overloaded methods */ + +/* Ensure this value does not clash with the GV_ADD* flags in gv.h: */ #define SVf_UTF8 0x20000000 /* SvPV is UTF-8 encoded This is also set on RVs whose overloaded stringification is UTF-8. This might only happen as a side effect of SvPV() */ -/* Ensure this value does not clash with the GV_ADD* flags in gv.h */ /* Some private flags. */ +/* PVAV could probably use 0x2000000 without conflict. I assume that PVFM can + be UTF-8 encoded, and PVCVs could well have UTF-8 prototypes. PVIOs haven't + been restructured, so sometimes get used as string buffers. */ + /* PVHV */ #define SVphv_SHAREKEYS 0x20000000 /* PVHV keys live on shared string table */ /* PVNV, PVMG, presumably only inside pads */ |