summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-08-08 12:05:40 +0100
committerNicholas Clark <nick@ccl4.org>2009-08-08 17:48:32 +0100
commitd5713896ecd1399c9c6c4076514a33eb2880d8c3 (patch)
treeaedd41f92ea6bc35ba5ce50ff0981dfbccbe45e4 /gv.h
parent1776cbe8523bf67a0626da7b721abaf9f0f8870a (diff)
downloadperl-d5713896ecd1399c9c6c4076514a33eb2880d8c3.tar.gz
Merge gv_AVadd(), gv_HVadd() and gv_SVadd() into gv_add_by_type().
The "short" names become macro wrappers, and the Perl_* versions become mathoms.
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gv.h b/gv.h
index 8344997d74..d09a9294d1 100644
--- a/gv.h
+++ b/gv.h
@@ -207,6 +207,10 @@ Return the SV from the GV.
#define gv_efullname3(sv,gv,prefix) gv_efullname4(sv,gv,prefix,TRUE)
#define gv_fetchmethod(stash, name) gv_fetchmethod_autoload(stash, name, TRUE)
+#define gv_AVadd(gv) gv_add_by_type((gv), SVt_PVAV)
+#define gv_HVadd(gv) gv_add_by_type((gv), SVt_PVHV)
+#define gv_SVadd(gv) gv_add_by_type((gv), SVt_NULL)
+
/*
* Local variables:
* c-indentation-style: bsd