[svn:parrot] r40551 - in branches/pluggable_runcore: include/parrot src/runcore

cotto at svn.parrot.org cotto at svn.parrot.org
Sat Aug 15 00:36:25 UTC 2009


Author: cotto
Date: Sat Aug 15 00:36:23 2009
New Revision: 40551
URL: https://trac.parrot.org/parrot/changeset/40551

Log:
[profiling] minor code cleanup and typo fixes

Modified:
   branches/pluggable_runcore/include/parrot/runcore_api.h
   branches/pluggable_runcore/src/runcore/cores.c

Modified: branches/pluggable_runcore/include/parrot/runcore_api.h
==============================================================================
--- branches/pluggable_runcore/include/parrot/runcore_api.h	Fri Aug 14 23:47:57 2009	(r40550)
+++ branches/pluggable_runcore/include/parrot/runcore_api.h	Sat Aug 15 00:36:23 2009	(r40551)
@@ -11,6 +11,7 @@
 
 struct runcore_t;
 typedef struct runcore_t Parrot_runcore_t;
+
 struct profiling_runcore_t;
 typedef struct profiling_runcore_t Parrot_profiling_runcore_t;
 

Modified: branches/pluggable_runcore/src/runcore/cores.c
==============================================================================
--- branches/pluggable_runcore/src/runcore/cores.c	Fri Aug 14 23:47:57 2009	(r40550)
+++ branches/pluggable_runcore/src/runcore/cores.c	Sat Aug 15 00:36:23 2009	(r40551)
@@ -776,7 +776,7 @@
 
     PARROT_RUNCORE_FUNC_TABLE_SET(coredata);
 
-    Parrot_runcore_register(interp, coredata);
+    Parrot_runcore_register(interp, (Parrot_runcore_t *) coredata);
 }
 
 
@@ -1043,7 +1043,7 @@
 
     runcore->level = 0;
     runcore->time_size = 32;
-    runcore->time = mem_allocate_n_typed(runcore->time_size, UHUGEINTVAL*);
+    runcore->time = mem_allocate_n_typed(runcore->time_size, UHUGEINTVAL);
 
     runcore->prof_fd = fopen("parrot.pprof", "w");
     if (!runcore->prof_fd) {
@@ -1089,8 +1089,8 @@
 
         if (runcore->level > runcore->time_size) {
             runcore->time_size *= 2;
-            runcore->time = 
-                mem_realloc_n_typed(runcore->time, runcore->time_size, UHUGEINGVAL*);
+            runcore->time =
+                mem_realloc_n_typed(runcore->time, runcore->time_size, UHUGEINTVAL);
         }
 
         /* store the time between DO_OP and the start of this runcore in this


More information about the parrot-commits mailing list