diff options
author | Brian Fraser <fraserbn@gmail.com> | 2011-07-05 01:27:13 -0300 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-10-06 13:00:57 -0700 |
commit | e606678100532d04b0a202d11e1d0f8323bd1564 (patch) | |
tree | c5c32020e67b933ab54436b773725c0e46f412f2 /gv.h | |
parent | 0eaf81c53c0965e619d33cdd6a5f53c2f4bed7cf (diff) | |
download | perl-e606678100532d04b0a202d11e1d0f8323bd1564.tar.gz |
gv.c: Added gv_init_(sv|pv|pvn), renamed gv_init_sv as gv_init_svtype.
gv_init_pvn() is the same as the old gv_init(), but takes
a flags parameter, which will be used for the UTF-8 cleanup.
The old gv_init() is now implemeneted as a macro in gv.h.
Also included is some minimal testing in XS::APItest.
Diffstat (limited to 'gv.h')
-rw-r--r-- | gv.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -237,6 +237,7 @@ 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_fetchsv_nomg(n,f,t) gv_fetchsv(n,(f)|GV_NO_SVGMAGIC,t) +#define gv_init(gv,stash,name,len,multi) gv_init_pvn(gv,stash,name,len,multi,0) #define gv_AVadd(gv) gv_add_by_type((gv), SVt_PVAV) #define gv_HVadd(gv) gv_add_by_type((gv), SVt_PVHV) |