[svn:parrot] r37100 - trunk/src

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Tue Mar 3 21:36:29 UTC 2009


Author: pmichaud
Date: Tue Mar  3 21:36:29 2009
New Revision: 37100
URL: https://trac.parrot.org/parrot/changeset/37100

Log:
[core]: Clean up code format issues identified in TT #398 (Util++)

Modified:
   trunk/src/sub.c

Modified: trunk/src/sub.c
==============================================================================
--- trunk/src/sub.c	Tue Mar  3 18:23:12 2009	(r37099)
+++ trunk/src/sub.c	Tue Mar  3 21:36:29 2009	(r37100)
@@ -596,15 +596,15 @@
 
             PMC_get_sub(interp, child_pmc, child_sub);
 
-            if (!PMC_IS_NULL(child_sub->outer_sub))
-
+            if (!PMC_IS_NULL(child_sub->outer_sub)) {
                 PMC_get_sub(interp, child_sub->outer_sub, child_outer_sub);
                 if (Parrot_str_equal(interp, current_sub->subid,
                                       child_outer_sub->subid)) {
-                old = child_sub->outer_ctx;
-                child_sub->outer_ctx = Parrot_context_ref(interp, ctx);
-                if (old)
-                    Parrot_free_context(interp, old, 1);
+                    old = child_sub->outer_ctx;
+                    child_sub->outer_ctx = Parrot_context_ref(interp, ctx);
+                    if (old)
+                        Parrot_free_context(interp, old, 1);
+                }
             }
         }
         return;


More information about the parrot-commits mailing list