summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorsyber <syber@crazypanda.ru>2014-08-08 21:06:10 +0400
committerSteffen Mueller <smueller@cpan.org>2014-08-20 09:12:01 +0200
commitd283e8761b900561d01c1d8807b4a2f19e0c28c1 (patch)
treee91a18cd7610b34726f5054d1988c6c0db79568c /gv.h
parent4e7ebec5b38b722121a7df00ce087bb49f1c6d43 (diff)
downloadperl-d283e8761b900561d01c1d8807b4a2f19e0c28c1.tar.gz
Make S_method_common use gv_stashpvn instead of copypasted cache usage
The previous commit copied the PL_stashcache handling code from S_method_common() to gv_stashpvn(), so now we can call that function directly rather than doing it ourselves.
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gv.h b/gv.h
index d7ca92fb58..5071591742 100644
--- a/gv.h
+++ b/gv.h
@@ -235,6 +235,8 @@ Return the CV from the GV.
#define GV_ADDMG 0x400 /* add if magical */
#define GV_NO_SVGMAGIC 0x800 /* Skip get-magic on an SV argument;
used only by gv_fetchsv(_nomg) */
+#define GV_CACHE_ONLY 0x1000 /* return stash only if found in cache;
+ used only in flags parameter to gv_stash* family */
/* Flags for gv_fetchmeth_pvn and gv_autoload_pvn*/
#define GV_SUPER 0x1000 /* SUPER::method */