diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-10-11 10:10:06 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-11 10:10:06 -0700 |
commit | 6f86b615fa775fad6cc0c49f0615f38543ff5c19 (patch) | |
tree | 0e7d5f0d49cec273aac625aa606baf759f4d7a97 /mathoms.c | |
parent | 29912d932cee5589d4165d5eff62d0cc4f2c5195 (diff) | |
download | perl-6f86b615fa775fad6cc0c49f0615f38543ff5c19.tar.gz |
Allow mro_isa_changed_in to be called on nonexistent packages
This is necessary for an upcoming bug fix.
(For this bug:
@left::ISA = 'outer::inner';
@right::ISA = 'clone::inner';
*clone:: = \%outer::;
print left->isa('clone::inner'),"\n";
print right->isa('outer::inner'),"\n";
)
This commit actually replaces mro_isa_changed_in with
mro_isa_changed_in3. See the docs for it in the diff for mro.c.
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -83,6 +83,7 @@ PERL_CALLCONV I32 Perl_my_lstat(pTHX); PERL_CALLCONV I32 Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2); PERL_CALLCONV char * Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp); PERL_CALLCONV bool Perl_sv_2bool(pTHX_ register SV *const sv); +PERL_CALLCONV void Perl_mro_isa_changed_in(HV* stash); /* ref() is now a macro using Perl_doref; * this version provided for binary compatibility only. @@ -1554,6 +1555,12 @@ Perl_sv_2bool(pTHX_ register SV *const sv) return sv_2bool_flags(sv, SV_GMAGIC); } +void +Perl_mro_isa_changed_in(pTHX_ HV* stash) +{ + return mro_isa_changed_in3(stash, NULL, 0); +} + #endif /* NO_MATHOMS */ /* |