This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mg.c: White-space only
authorKarl Williamson <public@khwilliamson.com>
Mon, 22 Apr 2013 20:44:08 +0000 (14:44 -0600)
committerKarl Williamson <public@khwilliamson.com>
Mon, 20 May 2013 14:59:14 +0000 (08:59 -0600)
I found re-formatting this multi-line 'if' to be easier to understand

mg.c

diff --git a/mg.c b/mg.c
index c3dc4dd..6b8984e 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2645,8 +2645,11 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
                        PL_compiling.cop_warnings = pWARN_NONE;
                    }
                    /* Yuck. I can't see how to abstract this:  */
-                   else if (isWARN_on(((STRLEN *)SvPV_nolen_const(sv)) - 1,
-                                      WARN_ALL) && !any_fatals) {
+                   else if (isWARN_on(
+                                ((STRLEN *)SvPV_nolen_const(sv)) - 1,
+                                WARN_ALL)
+                            && !any_fatals)
+                    {
                        if (!specialWARN(PL_compiling.cop_warnings))
                            PerlMemShared_free(PL_compiling.cop_warnings);
                        PL_compiling.cop_warnings = pWARN_ALL;