[svn:parrot] r46164 - trunk/src

jimmy at svn.parrot.org jimmy at svn.parrot.org
Fri Apr 30 02:51:58 UTC 2010


Author: jimmy
Date: Fri Apr 30 02:51:57 2010
New Revision: 46164
URL: https://trac.parrot.org/parrot/changeset/46164

Log:
random consting

Modified:
   trunk/src/oo.c

Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c	Fri Apr 30 01:03:29 2010	(r46163)
+++ trunk/src/oo.c	Fri Apr 30 02:51:57 2010	(r46164)
@@ -1045,13 +1045,12 @@
     STRING * const class_str = CONST_STRING(interp, "class");
 
     for (i = 0; i < n; ++i) {
-        PMC *ns, *class_obj, *_class, *method_hash;
-        PMC *method = PMCNULL;
+        PMC * const _class    = VTABLE_get_pmc_keyed_int(interp, mro, i);
+        PMC * const ns        = VTABLE_get_namespace(interp, _class);
+        PMC * const class_obj = VTABLE_inspect_str(interp, ns, class_str);
+        PMC           *method = PMCNULL;
+        PMC * method_hash;
 
-        _class = VTABLE_get_pmc_keyed_int(interp, mro, i);
-        ns     = VTABLE_get_namespace(interp, _class);
-
-        class_obj = VTABLE_inspect_str(interp, ns, class_str);
         if (PMC_IS_NULL(class_obj))
             method_hash = VTABLE_inspect_str(interp, ns, methods_str);
         else


More information about the parrot-commits mailing list