summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-09-11 21:12:51 +0000
committerNicholas Clark <nick@ccl4.org>2008-09-11 21:12:51 +0000
commit515a4f721c0a11d47b9b2ea994989f977659c68b (patch)
treebfe2cd821573ed62407b94615617c7e3a61fa312
parent477acd91b77777975279707e892853aef237706b (diff)
downloadperl-515a4f721c0a11d47b9b2ea994989f977659c68b.tar.gz
S_isa_lookup() no longer recurses (as of Brandon's MRO changes), so we
don't need to pass in name_stash as a parameter. p4raw-id: //depot/perl@34349
-rw-r--r--embed.fnc2
-rw-r--r--embed.h2
-rw-r--r--proto.h2
-rw-r--r--universal.c6
4 files changed, 6 insertions, 6 deletions
diff --git a/embed.fnc b/embed.fnc
index f08dfef1a5..368857cd62 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1660,7 +1660,7 @@ s |void |printbuf |NN const char *const fmt|NN const char *const s
#endif
#if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT)
-s |bool|isa_lookup |NULLOK HV *stash|NN const char * const name|NULLOK const HV * const name_stash
+s |bool|isa_lookup |NULLOK HV *stash|NN const char * const name
#endif
#if defined(PERL_IN_LOCALE_C) || defined(PERL_DECL_PROT)
diff --git a/embed.h b/embed.h
index 9caec1d93d..01f750cd21 100644
--- a/embed.h
+++ b/embed.h
@@ -3897,7 +3897,7 @@
#endif
#if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT)
#ifdef PERL_CORE
-#define isa_lookup(a,b,c) S_isa_lookup(aTHX_ a,b,c)
+#define isa_lookup(a,b) S_isa_lookup(aTHX_ a,b)
#endif
#endif
#if defined(PERL_IN_LOCALE_C) || defined(PERL_DECL_PROT)
diff --git a/proto.h b/proto.h
index da79be1516..cd295a0572 100644
--- a/proto.h
+++ b/proto.h
@@ -5851,7 +5851,7 @@ STATIC void S_printbuf(pTHX_ const char *const fmt, const char *const s)
#endif
#if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT)
-STATIC bool S_isa_lookup(pTHX_ HV *stash, const char * const name, const HV * const name_stash)
+STATIC bool S_isa_lookup(pTHX_ HV *stash, const char * const name)
__attribute__nonnull__(pTHX_2);
#define PERL_ARGS_ASSERT_ISA_LOOKUP \
assert(name)
diff --git a/universal.c b/universal.c
index 19fb608320..c6de960d34 100644
--- a/universal.c
+++ b/universal.c
@@ -37,13 +37,14 @@
*/
STATIC bool
-S_isa_lookup(pTHX_ HV *stash, const char * const name, const HV* const name_stash)
+S_isa_lookup(pTHX_ HV *stash, const char * const name)
{
dVAR;
AV* stash_linear_isa;
SV** svp;
const char *hvname;
I32 items;
+ const HV *const name_stash = gv_stashpv(name, 0);
PERL_ARGS_ASSERT_ISA_LOOKUP;
@@ -116,8 +117,7 @@ Perl_sv_derived_from(pTHX_ SV *sv, const char *const name)
}
if (stash) {
- HV * const name_stash = gv_stashpv(name, 0);
- return isa_lookup(stash, name, name_stash);
+ return isa_lookup(stash, name);
}
else
return FALSE;