summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@covalent.net>2001-02-10 02:57:12 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-10 21:25:07 +0000
commit5bd07a3d26012a115fab327912ac8788755e1251 (patch)
tree93771955569aee6376d8b39290ad18dd10204fe4 /gv.h
parentc049f95368b5429d658957f04652ad3e5f2d09a0 (diff)
downloadperl-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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gv.h b/gv.h
index 07a04b67cb..01764e3617 100644
--- a/gv.h
+++ b/gv.h
@@ -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