diff options
author | Doug MacEachern <dougm@covalent.net> | 2001-02-10 02:57:12 -0800 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-10 21:25:07 +0000 |
commit | 5bd07a3d26012a115fab327912ac8788755e1251 (patch) | |
tree | 93771955569aee6376d8b39290ad18dd10204fe4 /gv.h | |
parent | c049f95368b5429d658957f04652ad3e5f2d09a0 (diff) | |
download | perl-5bd07a3d26012a115fab327912ac8788755e1251.tar.gz |
[patch] GvSHARED
Message-ID: <Pine.LNX.4.21.0102101047320.15298-100000@mako.covalent.net>
p4raw-id: //depot/perl@8760
Diffstat (limited to 'gv.h')
-rw-r--r-- | gv.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -131,6 +131,19 @@ HV *GvHVn(); #define GvIN_PAD_on(gv) (GvFLAGS(gv) |= GVf_IN_PAD) #define GvIN_PAD_off(gv) (GvFLAGS(gv) &= ~GVf_IN_PAD) +/* XXX: all GvFLAGS options are used, borrowing GvGPFLAGS for the moment */ + +#define GVf_SHARED 0x0001 +#define GvSHARED(gv) (GvGP(gv) && (GvGPFLAGS(gv) & GVf_SHARED)) +#define GvSHARED_on(gv) (GvGPFLAGS(gv) |= GVf_SHARED) +#define GvSHARED_off(gv) (GvGPFLAGS(gv) &= ~GVf_SHARED) + +#ifdef USE_ITHREADS +#define GV_SHARED_CHECK +#else +#undef GV_SHARED_CHECK +#endif + #define Nullgv Null(GV*) #define DM_UID 0x003 |