summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-06 14:50:21 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-06 14:50:21 +0000
commitc158a4fd68e274329d9ffd7198cb9eb1b21b0dfe (patch)
tree1eadef310fe5d08bd4c2f6464c0c7da4a712e13d /sv.h
parentae29f7f0afee45e66c70e78182c1d7337e125b1f (diff)
downloadperl-c158a4fd68e274329d9ffd7198cb9eb1b21b0dfe.tar.gz
Abstract all access to the shared hash value through SvSHARED_HASH()
p4raw-id: //depot/perl@24716
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 15d90a9e06..da03ca8501 100644
--- a/sv.h
+++ b/sv.h
@@ -1309,6 +1309,8 @@ Like C<sv_catsv> but doesn't process magic.
(SVf_FAKE | SVf_READONLY))
#define SvIsCOW_shared_hash(sv) (SvIsCOW(sv) && SvLEN(sv) == 0)
+#define SvSHARED_HASH(sv) SvUVX(sv)
+
/* flag values for sv_*_flags functions */
#define SV_IMMEDIATE_UNREF 1
#define SV_GMAGIC 2