]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Now the old check function is always called before storing an op into the map
authorVincent Pit <vince@profvince.com>
Sun, 31 Aug 2008 09:34:11 +0000 (11:34 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 31 Aug 2008 09:34:11 +0000 (11:34 +0200)
indirect.xs

index cd118b1e45dc4b1921ac14057eb403aa731bf89a..e8250f14934373f601fb0c2069fa03b16f0e4968 100644 (file)
@@ -151,7 +151,9 @@ STATIC OP *indirect_ck_rv2sv(pTHX_ OP *o) {
   if (SvPOK(name) && (SvTYPE(name) >= SVt_PV)) {
    SV *sv = sv_2mortal(newSVpvn("$", 1));
    sv_catsv(sv, name);
+   o = CALL_FPTR(indirect_old_ck_rv2sv)(aTHX_ o);
    indirect_map_store(o, indirect_find(sv, PL_parser->oldbufptr), sv);
+   return o;
   }
  }