summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-07-13 05:49:19 -0500
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-07-13 16:37:48 +0000
commit46c461b51dd657dd9227e8d230ce0a737a33cb3e (patch)
treeca0f3694daf76da19fba2b8c90d3aa186b9011f9 /pp_hot.c
parent858a90f980dd074da7b777d2a853a60c6e058f77 (diff)
downloadperl-46c461b51dd657dd9227e8d230ce0a737a33cb3e.tar.gz
More embed.fnc plowing
Message-ID: <20050713154919.GA24586@petdance.com> p4raw-id: //depot/perl@25138
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 07eb58553c..b150ac9538 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2969,17 +2969,15 @@ PP(pp_method_named)
STATIC SV *
S_method_common(pTHX_ SV* meth, U32* hashp)
{
- SV* sv;
SV* ob;
GV* gv;
HV* stash;
STRLEN namelen;
- const char* packname = 0;
+ const char* packname = Nullch;
SV *packsv = Nullsv;
STRLEN packlen;
- const char *name = SvPV_const(meth, namelen);
-
- sv = *(PL_stack_base + TOPMARK + 1);
+ const char * const name = SvPV_const(meth, namelen);
+ SV * const sv = *(PL_stack_base + TOPMARK + 1);
if (!sv)
Perl_croak(aTHX_ "Can't call method \"%s\" on an undefined value", name);
@@ -2992,8 +2990,6 @@ S_method_common(pTHX_ SV* meth, U32* hashp)
GV* iogv;
/* this isn't a reference */
- packname = Nullch;
-
if(SvOK(sv) && (packname = SvPV_const(sv, packlen))) {
const HE* const he = hv_fetch_ent(PL_stashcache, sv, 0, 0);
if (he) {
@@ -3085,7 +3081,7 @@ S_method_common(pTHX_ SV* meth, U32* hashp)
packname = CopSTASHPV(PL_curcop);
}
else if (stash) {
- HEK *packhek = HvNAME_HEK(stash);
+ HEK * const packhek = HvNAME_HEK(stash);
if (packhek) {
packname = HEK_KEY(packhek);
packlen = HEK_LEN(packhek);