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

cotto at svn.parrot.org cotto at svn.parrot.org
Wed Mar 18 19:41:15 UTC 2009


Author: cotto
Date: Wed Mar 18 19:41:12 2009
New Revision: 37552
URL: https://trac.parrot.org/parrot/changeset/37552

Log:
[PMC] move delcaration to beginning of function

Modified:
   trunk/src/pmc/iterator.pmc

Modified: trunk/src/pmc/iterator.pmc
==============================================================================
--- trunk/src/pmc/iterator.pmc	Wed Mar 18 19:00:07 2009	(r37551)
+++ trunk/src/pmc/iterator.pmc	Wed Mar 18 19:41:12 2009	(r37552)
@@ -395,6 +395,7 @@
 
     VTABLE void set_integer_native(INTVAL value) {
         PMC *agg;
+        PMC *key;
         if (value < ITERATE_FROM_START || value > ITERATE_FROM_END)
             Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_INVALID_OPERATION,
                     "Illegal set_integer on iterator");
@@ -402,7 +403,6 @@
         /* reset iterator on aggregate */
         agg = SELF.get_pmc();
 
-        PMC *key;
         GET_ATTR_key(INTERP, SELF, key);
         if (PMC_is_null(INTERP, key))
             key = key_new(INTERP);


More information about the parrot-commits mailing list