summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2017-12-10 16:53:45 -0800
committerFather Chrysostomos <sprout@cpan.org>2017-12-10 18:19:01 -0800
commit732d3893ab63739910640c98c1cc83ab7bb1332c (patch)
treeefb5a9bc096cdb04973f8082eab88f24a02ca04d /os2
parent6da090e6cb9d18c5db3bb70c8c4d0c7e58183273 (diff)
downloadperl-732d3893ab63739910640c98c1cc83ab7bb1332c.tar.gz
Avoid newGVgen in blead-upstream modules
ExtUtils::ParseXS::Typemaps: Just in documentation, but it’s good to change it, in case peo- ple copy it. Time::HiRes: It doesn’t even use these typemap entries, but I changed it in case they get used in the future. (The changes are not identical to the default typemap, because Time::HiRes is 5.6-compatible, at least nominally.) os2/os2.c: No, this is not a module, but I changed it, too. Some other instances of newGVgen are already handled properly, or are just in tests, so I left them alone.
Diffstat (limited to 'os2')
-rw-r--r--os2/os2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os2/os2.c b/os2/os2.c
index 20572f0acb..66f387bd3c 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -4257,7 +4257,8 @@ XS(XS_OS2_pipe)
perlio = PerlIO_fdopen(hpipe, buf);
ST(0) = sv_newmortal();
{
- GV *gv = newGVgen("OS2::pipe");
+ GV *gv = (GV *)sv_newmortal();
+ gv_init_pvn(gv, gv_stashpvs("OS2::pipe",1),"__ANONIO__",10,0);
if ( do_open6(gv, perltype, strlen(perltype), perlio, NULL, 0) )
sv_setsv(ST(0), sv_bless(newRV((SV*)gv), gv_stashpv("IO::Handle",1)));
else