diff options
author | David Mitchell <davem@iabyn.com> | 2011-10-07 20:01:08 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-10-07 20:07:48 +0100 |
commit | d3ce79bdc53b8fe8e6eb440713ea89624d91dffb (patch) | |
tree | 1df6de7e7f147b6e4788649d727486b61e3f5cd8 | |
parent | 9a214eecd07ed44274740f81d8dce0e526badf80 (diff) | |
download | perl-d3ce79bdc53b8fe8e6eb440713ea89624d91dffb.tar.gz |
renumber SVpad_STATE and free a bit in SvFLAGS
SVpad_STATE is only used on SVs which hold PAD names; make it share the
same flags bit as SVprv_WEAKREF/SVf_IVisUV. Together with the previous
commit, this frees up a single bit in SvFLAGS, 0x00010000.
-rw-r--r-- | sv.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -309,8 +309,7 @@ perform the upgrade if necessary. See C<svtype>. subroutine in another package. Set the CvIMPORTED_CV_ON() if it needs to be expanded to a real GV */ - -#define SVpad_STATE 0x00010000 /* pad name is a "state" var */ +/* 0x00010000 *** FREE SLOT */ #define SVs_PADTMP 0x00020000 /* in use as tmp; only if ! SVs_PADMY */ #define SVs_PADSTALE 0x00020000 /* lexical has gone out of scope; only valid for SVs_PADMY */ @@ -410,6 +409,8 @@ perform the upgrade if necessary. See C<svtype>. #define SVpbm_TAIL 0x80000000 /* RV upwards. However, SVf_ROK and SVp_IOK are exclusive */ #define SVprv_WEAKREF 0x80000000 /* Weak reference */ +/* pad name vars only */ +#define SVpad_STATE 0x80000000 /* pad name is a "state" var */ #define _XPV_HEAD \ HV* xmg_stash; /* class package */ \ |