[svn:parrot] r45095 - trunk/src/pmc

petdance at svn.parrot.org petdance at svn.parrot.org
Mon Mar 22 04:08:23 UTC 2010


Author: petdance
Date: Mon Mar 22 04:08:22 2010
New Revision: 45095
URL: https://trac.parrot.org/parrot/changeset/45095

Log:
consting

Modified:
   trunk/src/pmc/parrotinterpreter.pmc

Modified: trunk/src/pmc/parrotinterpreter.pmc
==============================================================================
--- trunk/src/pmc/parrotinterpreter.pmc	Mon Mar 22 04:05:51 2010	(r45094)
+++ trunk/src/pmc/parrotinterpreter.pmc	Mon Mar 22 04:08:22 2010	(r45095)
@@ -127,10 +127,11 @@
                     PObj_is_class_TEST(s->vtables[i]->pmc_class)) {
                 /* Cloning the class into the new interpreter ought
                  * to be sufficient to instantiate the class.  */
-                PMC          *source       = s->vtables[i]->pmc_class;
-                PMC          *dest         = Parrot_clone(d, source);
-                Parrot_Class_attributes *source_class = PARROT_CLASS(source);
-                Parrot_Class_attributes *dest_class   = PARROT_CLASS(dest);
+                PMC                     * const source       = s->vtables[i]->pmc_class;
+                PMC                     * const dest         = Parrot_clone(d, source);
+                Parrot_Class_attributes * const source_class = PARROT_CLASS(source);
+                Parrot_Class_attributes * const dest_class   = PARROT_CLASS(dest);
+
                 dest_class->name           = Parrot_str_copy(d, source_class->name);
                 dest_class->_namespace     = VTABLE_clone(d, source_class->_namespace);
             }


More information about the parrot-commits mailing list