[svn:parrot] r39412 - in trunk/src: . pmc string

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri Jun 5 23:08:11 UTC 2009


Author: chromatic
Date: Fri Jun  5 23:08:10 2009
New Revision: 39412
URL: https://trac.parrot.org/parrot/changeset/39412

Log:
[src] Tidied code; no functional changes.

Modified:
   trunk/src/oo.c
   trunk/src/pmc/resizablestringarray.pmc
   trunk/src/string/api.c

Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c	Fri Jun  5 23:07:35 2009	(r39411)
+++ trunk/src/oo.c	Fri Jun  5 23:08:10 2009	(r39412)
@@ -1015,8 +1015,7 @@
                 sizeof (Meth_cache_entry ***) * mc->mc_size);
         }
         else {
-            mc->idx = (Meth_cache_entry ***)mem_sys_allocate_zeroed(
-                sizeof (Meth_cache_entry ***) * (type + 1));
+            mc->idx = mem_allocate_n_zeroed_typed(type + 1, Meth_cache_entry**);
         }
         mc->mc_size = type + 1;
     }

Modified: trunk/src/pmc/resizablestringarray.pmc
==============================================================================
--- trunk/src/pmc/resizablestringarray.pmc	Fri Jun  5 23:07:35 2009	(r39411)
+++ trunk/src/pmc/resizablestringarray.pmc	Fri Jun  5 23:08:10 2009	(r39412)
@@ -36,7 +36,6 @@
 */
 
     VTABLE void init() {
-
         Parrot_ResizableStringArray_attributes *attrs =
             mem_allocate_zeroed_typed(Parrot_ResizableStringArray_attributes);
 

Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c	Fri Jun  5 23:07:35 2009	(r39411)
+++ trunk/src/string/api.c	Fri Jun  5 23:08:10 2009	(r39412)
@@ -721,7 +721,7 @@
         UINTVAL len, ARGIN_NULLOK(const char *charset_name), UINTVAL flags)
 {
     ASSERT_ARGS(string_make)
-    const CHARSET  *charset;
+    const CHARSET *charset;
 
     if (!charset_name)
         charset_name = "ascii";
@@ -732,7 +732,6 @@
         Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_UNIMPLEMENTED,
             "Can't make '%s' charset strings", charset_name);
 
-
     return Parrot_str_new_init(interp, buffer, len,
         charset->preferred_encoding, charset, flags);
 


More information about the parrot-commits mailing list