av_push(isa_lin, newSVsv(isa_item));
}
else {
- isa_lin = (AV*)sv_2mortal((SV*)__mro_linear_isa_c3(isa_item_stash, cache, level + 1)); /* recursion */
+ isa_lin = (AV*)sv_2mortal((SV*)__mro_linear_isa_c3(aTHX_ isa_item_stash, cache, level + 1)); /* recursion */
}
av_push(seqs, (SV*)av_make(AvFILLp(isa_lin)+1, AvARRAY(isa_lin)));
}
stashname_len = subname - fq_subname - 2;
stashname = sv_2mortal(newSVpvn(fq_subname, stashname_len));
- linear_av = (AV*)sv_2mortal((SV*)__mro_linear_isa_c3(selfstash, NULL, 0));
+ linear_av = (AV*)sv_2mortal((SV*)__mro_linear_isa_c3(aTHX_ selfstash, NULL, 0));
linear_svp = AvARRAY(linear_av);
items = AvFILLp(linear_av) + 1;
class_stash = gv_stashsv(classname, 0);
if(!class_stash) croak("No such class: '%s'!", SvPV_nolen(classname));
- res = (AV*)sv_2mortal((SV*)__mro_linear_isa_c3(class_stash, cache, 0));
+ res = (AV*)sv_2mortal((SV*)__mro_linear_isa_c3(aTHX_ class_stash, cache, 0));
res_items = ret_items = AvFILLp(res) + 1;
res_ptr = AvARRAY(res);
#endif
SV* self = ST(0);
- SV* methcv = __nextcan(self, 0);
+ SV* methcv = __nextcan(aTHX_ self, 0);
PERL_UNUSED_VAR(items);
dMARK;
dAX;
SV* self = ST(0);
- SV* methcv = __nextcan(self, 1);
+ SV* methcv = __nextcan(aTHX_ self, 1);
PL_markstack_ptr++;
call_sv(methcv, GIMME_V);
dMARK;
dAX;
SV* self = ST(0);
- SV* methcv = __nextcan(self, 0);
+ SV* methcv = __nextcan(aTHX_ self, 0);
if(methcv == &PL_sv_undef) {
ST(0) = &PL_sv_undef;