summaryrefslogtreecommitdiff
path: root/pp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-01-03 12:54:21 +0000
committerDavid Mitchell <davem@iabyn.com>2011-01-03 12:54:21 +0000
commit4f5f5b0586ae4cf3d1af0d5506454c39c77e049f (patch)
tree16a35eb75b4588ce4f9bf8ddafa8b49eb5daf425 /pp.h
parent7f1e438c9c75cea0bbb94819e02b8057fe1855c1 (diff)
downloadperl-4f5f5b0586ae4cf3d1af0d5506454c39c77e049f.tar.gz
simplify tryAMAGICunTARGET
Expecting the targ in sp[-1] rather than sp[0] is accomplished cleanly using dATARGET.
Diffstat (limited to 'pp.h')
-rw-r--r--pp.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/pp.h b/pp.h
index 4d0395314a..d60666af6d 100644
--- a/pp.h
+++ b/pp.h
@@ -433,10 +433,7 @@ Does not use C<TARG>. See also C<XPUSHu>, C<mPUSHu> and C<PUSHu>.
#define tryAMAGICunTARGET(meth, shift, jump) \
STMT_START { \
- dSP; \
- sp--; /* get TARGET from below PL_stack_sp */ \
- { \
- dTARGETSTACKED; \
+ dATARGET; \
dSP; \
SV *tmpsv; \
SV *arg= sp[shift]; \
@@ -456,7 +453,6 @@ Does not use C<TARG>. See also C<XPUSHu>, C<mPUSHu> and C<PUSHu>.
} \
return NORMAL; \
} \
- } \
} STMT_END
/* This is no longer used anywhere in the core. You might wish to consider