@@ -1467,7 +1467,7 @@ S_find_and_forget_pmops(pTHX_ OP *o)
1467
1467
o = o->op_sibparent; /* process next sibling */
1468
1468
break;
1469
1469
}
1470
- o = o->op_sibparent; /*try parent's next sibling */
1470
+ o = o->op_sibparent; /* try parent's next sibling */
1471
1471
}
1472
1472
}
1473
1473
}
@@ -2101,15 +2101,15 @@ Perl_scalar(pTHX_ OP *o)
2101
2101
if (OpHAS_SIBLING(o))
2102
2102
next_kid = o->op_sibparent;
2103
2103
else {
2104
- o = o->op_sibparent; /*try parent's next sibling */
2104
+ o = o->op_sibparent; /* try parent's next sibling */
2105
2105
switch (o->op_type) {
2106
2106
case OP_SCOPE:
2107
2107
case OP_LINESEQ:
2108
2108
case OP_LIST:
2109
2109
case OP_LEAVE:
2110
2110
case OP_LEAVETRY:
2111
2111
/* should really restore PL_curcop to its old value, but
2112
- * setting it to PL_compiling is better than do nothing */
2112
+ * setting it to PL_compiling is better than doing nothing */
2113
2113
PL_curcop = &PL_compiling;
2114
2114
}
2115
2115
}
@@ -2262,7 +2262,7 @@ Perl_scalarvoid(pTHX_ OP *arg)
2262
2262
if ((op_parent(o)->op_type == OP_ONCE) &&
2263
2263
(op_parent(o)->op_next == o)
2264
2264
){
2265
- /* An already set "state" OP has been encounted
2265
+ /* An already set "state" OP has been encountered
2266
2266
* and there's no point pushing anything to the
2267
2267
* stack in void context. */
2268
2268
op_parent(o)->op_next = o->op_next;
@@ -2312,8 +2312,8 @@ Perl_scalarvoid(pTHX_ OP *arg)
2312
2312
else {
2313
2313
if (ckWARN(WARN_VOID)) {
2314
2314
NV nv;
2315
- /* don't warn on optimised away booleans, eg
2316
- * use constant Foo, 5; Foo || print; */
2315
+ /* don't warn on optimised- away booleans, e.g.
2316
+ * use constant Foo => 5; Foo || print; */
2317
2317
if (cSVOPo->op_private & OPpCONST_SHORTCIRCUIT)
2318
2318
useless = NULL;
2319
2319
/* the constants 0 and 1 are permitted as they are
@@ -2503,7 +2503,7 @@ Perl_scalarvoid(pTHX_ OP *arg)
2503
2503
if (OpHAS_SIBLING(o))
2504
2504
next_kid = o->op_sibparent;
2505
2505
else
2506
- o = o->op_sibparent; /*try parent's next sibling */
2506
+ o = o->op_sibparent; /* try parent's next sibling */
2507
2507
}
2508
2508
o = next_kid;
2509
2509
}
@@ -2544,7 +2544,7 @@ Perl_list(pTHX_ OP *o)
2544
2544
}
2545
2545
2546
2546
if ((o->op_private & OPpTARGET_MY)
2547
- && (PL_opargs[o->op_type] & OA_TARGLEX))/* OPp share the meaning */
2547
+ && (PL_opargs[o->op_type] & OA_TARGLEX)) /* OPp share the meaning */
2548
2548
{
2549
2549
goto do_next; /* As if inside SASSIGN */
2550
2550
}
@@ -2563,7 +2563,7 @@ Perl_list(pTHX_ OP *o)
2563
2563
&& SvIVX(kSVOP_sv) == 1)
2564
2564
{
2565
2565
op_null(o); /* repeat */
2566
- op_null(cUNOPx(cBINOPo->op_first)->op_first);/* pushmark */
2566
+ op_null(cUNOPx(cBINOPo->op_first)->op_first); /* pushmark */
2567
2567
/* const (rhs): */
2568
2568
op_free(op_sibling_splice(o, cBINOPo->op_first, 1, NULL));
2569
2569
}
@@ -2647,15 +2647,15 @@ Perl_list(pTHX_ OP *o)
2647
2647
if (OpHAS_SIBLING(o))
2648
2648
next_kid = o->op_sibparent;
2649
2649
else {
2650
- o = o->op_sibparent; /*try parent's next sibling */
2650
+ o = o->op_sibparent; /* try parent's next sibling */
2651
2651
switch (o->op_type) {
2652
2652
case OP_SCOPE:
2653
2653
case OP_LINESEQ:
2654
2654
case OP_LIST:
2655
2655
case OP_LEAVE:
2656
2656
case OP_LEAVETRY:
2657
2657
/* should really restore PL_curcop to its old value, but
2658
- * setting it to PL_compiling is better than do nothing */
2658
+ * setting it to PL_compiling is better than doing nothing */
2659
2659
PL_curcop = &PL_compiling;
2660
2660
}
2661
2661
}
@@ -2715,9 +2715,9 @@ S_modkids(pTHX_ OP *o, I32 type)
2715
2715
}
2716
2716
2717
2717
2718
- /* for a helem/hslice/kvslice, if its a fixed hash, croak on invalid
2718
+ /* For a helem/hslice/kvslice, if it's a fixed hash, croak on invalid
2719
2719
* const fields. Also, convert CONST keys to HEK-in-SVs.
2720
- * rop is the op that retrieves the hash;
2720
+ * rop is the op that retrieves the hash
2721
2721
* key_op is the first key
2722
2722
* real if false, only check (and possibly croak); don't update op
2723
2723
*/
@@ -2895,7 +2895,7 @@ S_vivifies(const OPCODE type)
2895
2895
* \($x,$y) = (...)
2896
2896
* o would be the list ($x,$y) and type would be OP_AASSIGN.
2897
2897
* It may descend and apply this to children too, for example in
2898
- * \( $cond ? $x, $y ) = (...)
2898
+ * \( $cond ? $x : $y, $z ) = (...)
2899
2899
*/
2900
2900
2901
2901
static void
@@ -2998,7 +2998,7 @@ S_lvref(pTHX_ OP *o, I32 type)
2998
2998
2999
2999
/* the code formerly only recursed into the first child of
3000
3000
* a non ex-list OP_NULL. if we ever encounter such a null op with
3001
- * more than one child, need to decide whether its ok to process
3001
+ * more than one child, need to decide whether it's ok to process
3002
3002
* *all* its kids or not */
3003
3003
assert(o->op_targ == OP_LIST
3004
3004
|| !(OpHAS_SIBLING(cBINOPo->op_first)));
@@ -3036,7 +3036,7 @@ S_lvref(pTHX_ OP *o, I32 type)
3036
3036
o = o->op_sibparent;
3037
3037
break;
3038
3038
}
3039
- o = o->op_sibparent; /*try parent's next sibling */
3039
+ o = o->op_sibparent; /* try parent's next sibling */
3040
3040
}
3041
3041
} /* while */
3042
3042
}
@@ -3593,14 +3593,14 @@ Perl_op_lvalue_flags(pTHX_ OP *o, I32 type, U32 flags)
3593
3593
&& S_vivifies(next_kid->op_type))
3594
3594
)
3595
3595
) {
3596
- /*try parent's next sibling */
3596
+ /* try parent's next sibling */
3597
3597
o = parent;
3598
3598
next_kid = NULL;
3599
3599
}
3600
3600
}
3601
3601
}
3602
3602
else
3603
- o = o->op_sibparent; /*try parent's next sibling */
3603
+ o = o->op_sibparent; /* try parent's next sibling */
3604
3604
3605
3605
}
3606
3606
o = next_kid;
@@ -3834,7 +3834,7 @@ Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref)
3834
3834
break;
3835
3835
continue;
3836
3836
}
3837
- o = o->op_sibparent; /*try parent's next sibling */
3837
+ o = o->op_sibparent; /* try parent's next sibling */
3838
3838
}
3839
3839
} /* while */
3840
3840
}
@@ -5630,7 +5630,7 @@ Perl_newNULLLIST(pTHX)
5630
5630
return newOP(OP_STUB, 0);
5631
5631
}
5632
5632
5633
- /* promote o and any siblings to be a list if its not already; i.e.
5633
+ /* Promote o and any siblings to be a list if it's not already; i.e.
5634
5634
*
5635
5635
* o - A - B
5636
5636
*
@@ -5640,7 +5640,7 @@ Perl_newNULLLIST(pTHX)
5640
5640
* |
5641
5641
* pushmark - o - A - B
5642
5642
*
5643
- * If nullit it true, the list op is nulled.
5643
+ * If nullit is true, the list op is nulled.
5644
5644
*/
5645
5645
5646
5646
static OP *
@@ -7743,7 +7743,7 @@ Perl_pmruntime(pTHX_ OP *o, OP *expr, OP *repl, UV flags, I32 floor)
7743
7743
* outer CV (the one whose slab holds the pm op). The
7744
7744
* inner CV (which holds expr) will be freed later, once
7745
7745
* all the entries on the parse stack have been popped on
7746
- * return from this function. Which is why its safe to
7746
+ * return from this function. Which is why it's safe to
7747
7747
* call op_free(expr) below.
7748
7748
*/
7749
7749
LEAVE_SCOPE(floor);
@@ -8258,8 +8258,7 @@ Perl_utilize(pTHX_ int aver, I32 floor, OP *version, OP *idop, OP *arg)
8258
8258
newSTATEOP(0, NULL, imop) ));
8259
8259
8260
8260
if (use_version) {
8261
- /* Enable the
8262
- * feature bundle that corresponds to the required version. */
8261
+ /* Enable the feature bundle that corresponds to the required version. */
8263
8262
use_version = sv_2mortal(new_version(use_version));
8264
8263
S_enable_feature_bundle(aTHX_ use_version);
8265
8264
@@ -8537,7 +8536,7 @@ Perl_newSLICEOP(pTHX_ I32 flags, OP *subscript, OP *listval)
8537
8536
#define ASSIGN_LIST 1
8538
8537
#define ASSIGN_REF 2
8539
8538
8540
- /* given the optree o on the LHS of an assignment, determine whether its :
8539
+ /* given the optree o on the LHS of an assignment, determine whether it's :
8541
8540
* ASSIGN_SCALAR $x = ...
8542
8541
* ASSIGN_LIST ($x) = ...
8543
8542
* ASSIGN_REF \$x = ...
@@ -9935,7 +9934,7 @@ Perl_newFOROP(pTHX_ I32 flags, OP *sv, OP *expr, OP *block, OP *cont)
9935
9934
NewOp(1234,tmp,1,LOOP);
9936
9935
Copy(loop,tmp,1,LISTOP);
9937
9936
assert(loop->op_last->op_sibparent == (OP*)loop);
9938
- OpLASTSIB_set(loop->op_last, (OP*)tmp); /*point back to new parent */
9937
+ OpLASTSIB_set(loop->op_last, (OP*)tmp); /* point back to new parent */
9939
9938
S_op_destroy(aTHX_ (OP*)loop);
9940
9939
loop = tmp;
9941
9940
}
@@ -9947,7 +9946,7 @@ Perl_newFOROP(pTHX_ I32 flags, OP *sv, OP *expr, OP *block, OP *cont)
9947
9946
}
9948
9947
loop->op_targ = padoff;
9949
9948
if (parens)
9950
- /* hint to deparser that this: for my (...) ... */
9949
+ /* hint to deparser that this is : for my (...) ... */
9951
9950
loop->op_flags |= OPf_PARENS;
9952
9951
iter = newOP(OP_ITER, (U32)iterpflags << 8);
9953
9952
iter->op_targ = how_many_more;
@@ -12673,7 +12672,7 @@ Perl_ck_trycatch(pTHX_ OP *o)
12673
12672
* terms of its ->op_next pointers.
12674
12673
*
12675
12674
* This way, if the tryblock dies, its retop points at the OP_CATCH, but
12676
- * if it does not then its leavetry skips over that and continues
12675
+ * if it does not, then its leavetry skips over that and continues
12677
12676
* execution past it.
12678
12677
*/
12679
12678
0 commit comments