summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-25 15:38:25 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-25 15:38:25 +0000
commit584307902de552f84517013f42d1db478f4102bd (patch)
tree5c30770d078b412e7ced2d07b3444c7ead5ee1a4 /gv.h
parent27bd069fdd0f917015e698e36bfc41a29daa63be (diff)
downloadperl-584307902de552f84517013f42d1db478f4102bd.tar.gz
xgv_stash can be stored as a union with the NV, reducing the size of
PVGVs by another pointer. p4raw-id: //depot/perl@27326
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gv.h b/gv.h
index 4ba000d2e5..3e2bc90d9a 100644
--- a/gv.h
+++ b/gv.h
@@ -41,7 +41,7 @@ struct gp {
(*({ GV *_gv = (GV *) gv; \
assert(isGV_with_GP(_gv)); \
assert(SvTYPE(_gv) == SVt_PVGV || SvTYPE(_gv) >= SVt_PVLV); \
- &(GvXPVGV(_gv)->xgv_stash); \
+ &(GvXPVGV(_gv)->xnv_u.xgv_stash); \
}))
# define GvNAME(gv) \
(*({ GV *zzzz = (GV *) gv; \
@@ -58,7 +58,7 @@ struct gp {
#else
# define GvGP(gv) ((gv)->sv_u.svu_gp)
# define GvFLAGS(gv) (GvXPVGV(gv)->xgv_flags)
-# define GvSTASH(gv) (GvXPVGV(gv)->xgv_stash)
+# define GvSTASH(gv) (GvXPVGV(gv)->xnv_u.xgv_stash)
# define GvNAME(gv) (GvXPVGV(gv)->xgv_name)
# define GvNAMELEN(gv) (GvXPVGV(gv)->xgv_namelen)
#endif