find_method (const char *key, STRLEN keylen, SV *val, void *ud)
{
bool *found_method = (bool *)ud;
+ PERL_UNUSED_ARG(key);
+ PERL_UNUSED_ARG(keylen);
+ PERL_UNUSED_ARG(val);
*found_method = TRUE;
return FALSE;
}
PPCODE:
if (mop_get_code_info(coderef, &pkg, &name)) {
EXTEND(SP, 2);
- PUSHs(newSVpv(pkg, 0));
- PUSHs(newSVpv(name, 0));
+ mPUSHs(newSVpv(pkg, 0));
+ mPUSHs(newSVpv(name, 0));
}
# This is some pretty grotty logic. It _should_ be parallel to the
if (hv_exists_ent (stash, KEY_FOR(ISA), HASH_FOR(ISA))) {
HE *isa = hv_fetch_ent(stash, KEY_FOR(ISA), 0, HASH_FOR(ISA));
- if (isa && HeVAL(isa) && GvAV(HeVAL(isa))) {
+ if (isa && HeVAL(isa) && GvAV(HeVAL(isa)) && av_len(GvAV(HeVAL(isa))) != -1) {
XSRETURN_YES;
}
}