diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-04-28 00:18:30 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-12-09 18:47:20 -0800 |
commit | c58b680b06b94939ee921d7062cd14927136ae30 (patch) | |
tree | e8012ebb94b4e9a7bee7bfebc5f073744237b7f9 /op.c | |
parent | 9423a867e1bcf854b0ed9fff9eacaadd6f48ca8d (diff) | |
download | perl-c58b680b06b94939ee921d7062cd14927136ae30.tar.gz |
Stop using PL_glob_index for PL_globhook
If Glob.xs just uses the address of PL_op as its iterator key all the
time (when called via PL_globhook too, not just via a glob override),
the code is simpler.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -9005,9 +9005,6 @@ Perl_ck_glob(pTHX_ OP *o) gv = (GV *)newSV(0); gv_init(gv, 0, "", 0, 0); gv_IOadd(gv); -#ifndef PERL_EXTERNAL_GLOB - sv_setiv(GvSVn(gv),PL_glob_index++); -#endif op_append_elem(OP_GLOB, o, newGVOP(OP_GV, 0, gv)); SvREFCNT_dec_NN(gv); /* newGVOP increased it */ scalarkids(o); |