diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-24 13:59:57 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-24 13:59:57 +0000 |
commit | e736a858356e87659136ef1f34af858e253efe45 (patch) | |
tree | fff8fbef1435adacac7b8d8b5706fe81ace77603 /cv.h | |
parent | b96578bbbdd04614cada6e526896b2fa8f332c8a (diff) | |
download | perl-e736a858356e87659136ef1f34af858e253efe45.tar.gz |
Store the stash for our in the magic slot. This will allow us to use
PVMGs in pad names where previously PVGVs were used. In turn, this
gives much greater flexibility for the layout of PVGVs.
p4raw-id: //depot/perl@27312
Diffstat (limited to 'cv.h')
-rw-r--r-- | cv.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -20,7 +20,10 @@ struct xpvcv { void * xivu_p1; I32 xivu_i32; /* depth, >= 2 indicates recursive call */ } xiv_u; - MAGIC* xmg_magic; /* magic for scalar array */ + union { + MAGIC* xmg_magic; /* linked list of magicalness */ + HV* xmg_ourstash; /* Stash for our (when SvPAD_OUR is true) */ + } xmg_u; HV* xmg_stash; /* class package */ HV * xcv_stash; @@ -51,7 +54,10 @@ typedef struct { void * xivu_p1; I32 xivu_i32; /* depth, >= 2 indicates recursive call */ } xiv_u; - MAGIC* xmg_magic; /* magic for scalar array */ + union { + MAGIC* xmg_magic; /* linked list of magicalness */ + HV* xmg_ourstash; /* Stash for our (when SvPAD_OUR is true) */ + } xmg_u; HV* xmg_stash; /* class package */ HV * xcv_stash; |