[svn:parrot] r40378 - trunk/src/gc

jkeenan at svn.parrot.org jkeenan at svn.parrot.org
Sun Aug 2 11:53:32 UTC 2009


Author: jkeenan
Date: Sun Aug  2 11:53:32 2009
New Revision: 40378
URL: https://trac.parrot.org/parrot/changeset/40378

Log:
[codingstd] Applying patch submitted by mikehh for line length and c function docs.

Modified:
   trunk/src/gc/mark_sweep.c

Modified: trunk/src/gc/mark_sweep.c
==============================================================================
--- trunk/src/gc/mark_sweep.c	Sun Aug  2 11:36:19 2009	(r40377)
+++ trunk/src/gc/mark_sweep.c	Sun Aug  2 11:53:32 2009	(r40378)
@@ -1186,6 +1186,8 @@
 
 /*
 
+=over 4
+
 =item C<void * Parrot_gc_get_attributes_from_pool(PARROT_INTERP,
 PMC_Attribute_Pool * pool)>
 
@@ -1198,6 +1200,8 @@
 =item C<PMC_Attribute_Pool * Parrot_gc_create_attrib_pool(PARROT_INTERP, size_t
 attrib_size)>
 
+=back
+
 =cut
 
 */
@@ -1256,7 +1260,8 @@
         size_t total_size = idx + GC_ATTRIB_POOLS_HEADROOM;
         /* Allocate more then we strictly need, hoping that we can reduce the
            number of resizes. 8 is just an arbitrary number */
-        pools = (PMC_Attribute_Pool **)mem_internal_allocate(total_size * sizeof (PMC_Attribute_Pool *));
+        pools = (PMC_Attribute_Pool **)mem_internal_allocate(total_size
+                                                             * sizeof (PMC_Attribute_Pool *));
         memset(pools, 0, total_size * sizeof (void*));
         arenas->attrib_pools = pools;
         arenas->num_attribs = total_size;
@@ -1265,7 +1270,8 @@
         size_t total_size = idx + GC_ATTRIB_POOLS_HEADROOM;
         size_t current_size = arenas->num_attribs;
         size_t diff = total_size - current_size;
-        pools = (PMC_Attribute_Pool **)mem_internal_realloc(pools, total_size * sizeof (PMC_Attribute_Pool *));
+        pools = (PMC_Attribute_Pool **)mem_internal_realloc(pools, total_size
+                                                            * sizeof (PMC_Attribute_Pool *));
         memset(pools + current_size, 0, diff * sizeof (void *));
         arenas->attrib_pools = pools;
         arenas->num_attribs = total_size;


More information about the parrot-commits mailing list