diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-08-16 23:44:11 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-08-17 16:45:21 -0700 |
commit | ee62b5872fcaa0eebd452a940ede4d506653bd81 (patch) | |
tree | 28230c1fe442627eca23eda9cb7c72cb512811b6 /pp_ctl.c | |
parent | f28d8eb1c114895944de593e05ba8271fe1b4fdf (diff) | |
download | perl-ee62b5872fcaa0eebd452a940ede4d506653bd81.tar.gz |
pp_ctl.c:pp_dbstate: Don’t adjust CvDEPTH for XSUBs
Commit c127bd3aaa5c5 made XS DB::DB subs work. Before that,
pp_dbstate assumed DB::DB was written it perl. It adjusts CvDEPTH
when calling the XSUB, which serves no purpose. It was presumably
just copied from the pure-Perl-calling code. pp_entersub does-
n’t do this.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1973,10 +1973,8 @@ PP(pp_dbstate) SPAGAIN; if (CvISXSUB(cv)) { - CvDEPTH(cv)++; PUSHMARK(SP); (void)(*CvXSUB(cv))(aTHX_ cv); - CvDEPTH(cv)--; FREETMPS; LEAVE; return NORMAL; |