This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #108276) indent optimize_op() loop body
authorTony Cook <tony@develop-help.com>
Wed, 30 Jan 2019 00:06:52 +0000 (11:06 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 4 Feb 2019 23:02:26 +0000 (10:02 +1100)
op.c

diff --git a/op.c b/op.c
index 0db0128..35414be 100644 (file)
--- a/op.c
+++ b/op.c
@@ -3463,36 +3463,36 @@ S_optimize_op(pTHX_ OP* o)
 
     PERL_ARGS_ASSERT_OPTIMIZE_OP;
     do {
 
     PERL_ARGS_ASSERT_OPTIMIZE_OP;
     do {
-    assert(o->op_type != OP_FREED);
+        assert(o->op_type != OP_FREED);
 
 
-    switch (o->op_type) {
-    case OP_NEXTSTATE:
-    case OP_DBSTATE:
-       PL_curcop = ((COP*)o);          /* for warnings */
-       break;
+        switch (o->op_type) {
+        case OP_NEXTSTATE:
+        case OP_DBSTATE:
+            PL_curcop = ((COP*)o);             /* for warnings */
+            break;
 
 
 
 
-    case OP_CONCAT:
-    case OP_SASSIGN:
-    case OP_STRINGIFY:
-    case OP_SPRINTF:
-        S_maybe_multiconcat(aTHX_ o);
-        break;
+        case OP_CONCAT:
+        case OP_SASSIGN:
+        case OP_STRINGIFY:
+        case OP_SPRINTF:
+            S_maybe_multiconcat(aTHX_ o);
+            break;
 
 
-    case OP_SUBST:
-       if (cPMOPo->op_pmreplrootu.op_pmreplroot)
-           DEFER_OP(cPMOPo->op_pmreplrootu.op_pmreplroot);
-       break;
+        case OP_SUBST:
+            if (cPMOPo->op_pmreplrootu.op_pmreplroot)
+                DEFER_OP(cPMOPo->op_pmreplrootu.op_pmreplroot);
+            break;
 
 
-    default:
-       break;
-    }
+        default:
+            break;
+        }
 
 
-    if (o->op_flags & OPf_KIDS) {
-        OP *kid;
-        for (kid = cUNOPo->op_first; kid; kid = OpSIBLING(kid))
-            DEFER_OP(kid);
-    }
+        if (o->op_flags & OPf_KIDS) {
+            OP *kid;
+            for (kid = cUNOPo->op_first; kid; kid = OpSIBLING(kid))
+                DEFER_OP(kid);
+        }
     } while ( ( o = POP_DEFERRED_OP() ) );
 
     DEFER_OP_CLEANUP;
     } while ( ( o = POP_DEFERRED_OP() ) );
 
     DEFER_OP_CLEANUP;