summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-07-26 17:11:23 +0100
committerPaul Evans <leonerd@leonerd.org.uk>2022-08-03 09:52:06 +0100
commitc47242c255ce659acb89a8d155b93d611ea787bc (patch)
treed28fa6ac888d5475a438b37e47fc516eaaae6a47 /op.c
parentfab1abc517d5cbb1b03bf845006c3a5b2c9cf3b5 (diff)
downloadperl-c47242c255ce659acb89a8d155b93d611ea787bc.tar.gz
Define the remaining convenience cMETHOP* macros
Several of these were missing: cMETHOP, cMETHOPo, kMETHOP Also, the field-accessing ones: cMETHOP_meth cMETHOP_rclass cMETHOPo_meth cMETHOPo_rclass This commit adds them all, and use them to neaten other code where appropriate.
Diffstat (limited to 'op.c')
-rw-r--r--op.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/op.c b/op.c
index 16167e182c..b78d8cea65 100644
--- a/op.c
+++ b/op.c
@@ -1059,19 +1059,19 @@ Perl_op_clear(pTHX_ OP *o)
case OP_METHOD_REDIR:
case OP_METHOD_REDIR_SUPER:
#ifdef USE_ITHREADS
- if (cMETHOPx(o)->op_rclass_targ) {
- pad_swipe(cMETHOPx(o)->op_rclass_targ, 1);
- cMETHOPx(o)->op_rclass_targ = 0;
+ if (cMETHOPo->op_rclass_targ) {
+ pad_swipe(cMETHOPo->op_rclass_targ, 1);
+ cMETHOPo->op_rclass_targ = 0;
}
#else
- SvREFCNT_dec(cMETHOPx(o)->op_rclass_sv);
- cMETHOPx(o)->op_rclass_sv = NULL;
+ SvREFCNT_dec(cMETHOPo->op_rclass_sv);
+ cMETHOPo->op_rclass_sv = NULL;
#endif
/* FALLTHROUGH */
case OP_METHOD_NAMED:
case OP_METHOD_SUPER:
- SvREFCNT_dec(cMETHOPx(o)->op_u.op_meth_sv);
- cMETHOPx(o)->op_u.op_meth_sv = NULL;
+ SvREFCNT_dec(cMETHOPo->op_u.op_meth_sv);
+ cMETHOPo->op_u.op_meth_sv = NULL;
#ifdef USE_ITHREADS
if (o->op_targ) {
pad_swipe(o->op_targ, 1);