[svn:parrot] r45463 - trunk/tools/dev

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Apr 8 21:44:55 UTC 2010


Author: petdance
Date: Thu Apr  8 21:44:55 2010
New Revision: 45463
URL: https://trac.parrot.org/parrot/changeset/45463

Log:
consting

Modified:
   trunk/tools/dev/nci_thunk_gen.pir

Modified: trunk/tools/dev/nci_thunk_gen.pir
==============================================================================
--- trunk/tools/dev/nci_thunk_gen.pir	Thu Apr  8 21:32:19 2010	(r45462)
+++ trunk/tools/dev/nci_thunk_gen.pir	Thu Apr  8 21:44:55 2010	(r45463)
@@ -431,15 +431,13 @@
     .param pmc sigs
     .local string code
     code = 'sprintf'(<<'HEADER', $S0, $S1)
-    PMC *iglobals;
+    PMC * const iglobals = interp->iglobals;
     PMC *nci_funcs;
     PMC *temp_pmc;
 
-    iglobals = interp->iglobals;
     PARROT_ASSERT(!(PMC_IS_NULL(iglobals)));
 
-    nci_funcs = VTABLE_get_pmc_keyed_int(interp, iglobals,
-            IGLOBALS_NCI_FUNCS);
+    nci_funcs = VTABLE_get_pmc_keyed_int(interp, iglobals, IGLOBALS_NCI_FUNCS);
     PARROT_ASSERT(!(PMC_IS_NULL(nci_funcs)));
 
 HEADER


More information about the parrot-commits mailing list