Revert "Remove GvREFCNT_inc(), which is deprecated and unused."
authorNicholas Clark <nick@ccl4.org>
Fri, 7 Aug 2009 20:07:05 +0000 (21:07 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 7 Aug 2009 20:07:05 +0000 (21:07 +0100)
Wrong branch. D'oh!

This reverts commit 9f67176c6f8430ee98735b695f7082ef2ec1855d.

gv.h

index 2e27453..afab66d 100644 (file)
--- a/gv.h
+++ b/gv.h
@@ -95,6 +95,9 @@ Return the SV from the GV.
 #define GvFORM(gv)     (GvGP(gv)->gp_form)
 #define GvAV(gv)       (GvGP(gv)->gp_av)
 
+/* This macro is deprecated.  Do not use! */
+#define GvREFCNT_inc(gv) ((GV*)SvREFCNT_inc(gv))       /* DO NOT USE */
+
 #define GvAVn(gv)      (GvGP(gv)->gp_av ? \
                         GvGP(gv)->gp_av : \
                         GvGP(gv_AVadd(gv))->gp_av)