diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-23 23:45:39 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-23 23:45:39 +0000 |
commit | 00b1698f76403476df2006ff536ab00ffc650220 (patch) | |
tree | ae5dbe027577f9396c0b682aa9327b1c244f49fc /sv.h | |
parent | 120ff8e9dfa335c7980849dcb6aebd32733af305 (diff) | |
download | perl-00b1698f76403476df2006ff536ab00ffc650220.tar.gz |
Replace direct flags tests & manipulations for SVpad_TYPED and
SVpad_OUR with macros SvPAD_TYPED(), SvPAD_OUR() etc, to abstract
away the flags bits acutally used to store this information.
p4raw-id: //depot/perl@27294
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -928,6 +928,14 @@ in gv.h: */ #define SvREPADTMP_off(sv) (SvFLAGS(sv) &= ~SVf_FAKE) #endif +#define SvPAD_TYPED(sv) (SvFLAGS(sv) & SVpad_TYPED) +#define SvPAD_TYPED_on(sv) (SvFLAGS(sv) |= SVpad_TYPED) +#define SvPAD_TYPED_off(sv) (SvFLAGS(sv) &= ~SVpad_TYPED) + +#define SvPAD_OUR(sv) (SvFLAGS(sv) & SVpad_OUR) +#define SvPAD_OUR_on(sv) (SvFLAGS(sv) |= SVpad_OUR) +#define SvPAD_OUR_off(sv) (SvFLAGS(sv) &= ~SVpad_OUR) + #ifdef PERL_DEBUG_COW #define SvRV(sv) (0 + (sv)->sv_u.svu_rv) #else |