[svn:parrot] r38055 - in branches/packfile_revamp/src: . pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Sat Apr 11 08:13:30 UTC 2009


Author: bacek
Date: Sat Apr 11 08:13:29 2009
New Revision: 38055
URL: https://trac.parrot.org/parrot/changeset/38055

Log:
[cage] coding standard fixes: whitespaces, comments

Modified:
   branches/packfile_revamp/src/packfile.c
   branches/packfile_revamp/src/pmc/packfile.pmc
   branches/packfile_revamp/src/pmc/packfileconstanttable.pmc
   branches/packfile_revamp/src/pmc/packfiledirectory.pmc
   branches/packfile_revamp/src/pmc/packfilefixupentry.pmc
   branches/packfile_revamp/src/pmc/packfilefixuptable.pmc
   branches/packfile_revamp/src/pmc/packfilerawsegment.pmc

Modified: branches/packfile_revamp/src/packfile.c
==============================================================================
--- branches/packfile_revamp/src/packfile.c	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/packfile.c	Sat Apr 11 08:13:29 2009	(r38055)
@@ -1831,7 +1831,7 @@
     /*const size_t align             = 16 / sizeof (opcode_t);*/
     PackFile_Segment_pack_func_t f =
         self->pf->PackFuncs[self->type].pack;
-    opcode_t * old_cursor;          // Used for filling padding with 0
+    opcode_t * old_cursor;          /* Used for filling padding with 0 */
 #if TRACE_PACKFILE
     PackFile * const pf  = self->pf;
 #endif
@@ -2304,7 +2304,7 @@
     /*const size_t               align    = 16/sizeof (opcode_t);*/
     size_t i;
     PackFile           * const pf       = self->pf;
-    opcode_t                 * old_cursor;          // Used for filling padding with 0
+    opcode_t                 * old_cursor;  /* Used for filling padding with 0 */
 
     *cursor++ = num_segs;
 

Modified: branches/packfile_revamp/src/pmc/packfile.pmc
==============================================================================
--- branches/packfile_revamp/src/pmc/packfile.pmc	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/pmc/packfile.pmc	Sat Apr 11 08:13:29 2009	(r38055)
@@ -112,7 +112,7 @@
         STRING      *str;
 
         /* Calculate required memory */
-        length  = PackFile_pack_size(interp, pf) * sizeof(opcode_t);
+        length  = PackFile_pack_size(interp, pf) * sizeof (opcode_t);
         ptr     = (opcode_t*)mem_sys_allocate(length);
 
         /* And pack it! */
@@ -121,7 +121,7 @@
         str = Parrot_str_new_init(interp, (const char*)ptr, length,
                 PARROT_FIXED_8_ENCODING, PARROT_BINARY_CHARSET, 0);
         mem_sys_free(ptr);
-        
+
         PackFile_destroy(interp, pf);
         return str;
     }
@@ -413,7 +413,7 @@
 =cut
 
 */
-    
+
     METHOD void unpack(STRING *str) {
         SELF.set_string_native(str);
     }

Modified: branches/packfile_revamp/src/pmc/packfileconstanttable.pmc
==============================================================================
--- branches/packfile_revamp/src/pmc/packfileconstanttable.pmc	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/pmc/packfileconstanttable.pmc	Sat Apr 11 08:13:29 2009	(r38055)
@@ -58,7 +58,7 @@
 
 =item C<void mark()>
 
-Marks the object as live. 
+Marks the object as live.
 
 =cut
 
@@ -143,11 +143,11 @@
     VTABLE void *get_pointer() {
         Parrot_PackfileConstantTable_attributes * attrs =
                 PARROT_PACKFILECONSTANTTABLE(SELF);
-        PackFile_ConstTable * pftable = 
+        PackFile_ConstTable * pftable =
                 mem_allocate_zeroed_typed(PackFile_ConstTable);
 
         pftable->base.type = PF_CONST_SEG;
-        
+
         /* TODO Copy all constanst with respect of type */
 
         return pftable;
@@ -227,7 +227,7 @@
     VTABLE void set_number_keyed_int(INTVAL index, FLOATVAL value)  {
         Parrot_PackfileConstantTable_attributes * attrs =
                 PARROT_PACKFILECONSTANTTABLE(SELF);
-        
+
         VTABLE_set_number_keyed_int(interp, attrs->constants, index, value);
         VTABLE_set_integer_keyed_int(interp, attrs->types, index, PFC_NUMBER);
     }

Modified: branches/packfile_revamp/src/pmc/packfiledirectory.pmc
==============================================================================
--- branches/packfile_revamp/src/pmc/packfiledirectory.pmc	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/pmc/packfiledirectory.pmc	Sat Apr 11 08:13:29 2009	(r38055)
@@ -54,7 +54,7 @@
 
 =item C<void mark()>
 
-Marks the object as live. 
+Marks the object as live.
 
 =cut
 
@@ -107,7 +107,7 @@
         unsigned int     i;
         STRING           *name;
         PMC              *hash = PARROT_PACKFILEDIRECTORY(SELF)->hash;
-        
+
         SUPER(ptr);
 
         /* Iterate over elements and create corresponded PMCs */
@@ -172,7 +172,7 @@
             pfseg->name = strdup(Parrot_string_cstring(interp, name));
             PackFile_add_segment(interp, pfdir, pfseg);
         }
-        
+
         return pf;
     }
 

Modified: branches/packfile_revamp/src/pmc/packfilefixupentry.pmc
==============================================================================
--- branches/packfile_revamp/src/pmc/packfilefixupentry.pmc	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/pmc/packfilefixupentry.pmc	Sat Apr 11 08:13:29 2009	(r38055)
@@ -50,7 +50,7 @@
 
 =item C<void mark()>
 
-Marks the object as live. 
+Marks the object as live.
 
 =cut
 

Modified: branches/packfile_revamp/src/pmc/packfilefixuptable.pmc
==============================================================================
--- branches/packfile_revamp/src/pmc/packfilefixuptable.pmc	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/pmc/packfilefixuptable.pmc	Sat Apr 11 08:13:29 2009	(r38055)
@@ -54,7 +54,7 @@
 
 =item C<void mark()>
 
-Marks the object as live. 
+Marks the object as live.
 
 =cut
 
@@ -126,12 +126,12 @@
     VTABLE void *get_pointer() {
         Parrot_PackfileFixupTable_attributes * attrs =
                 PARROT_PACKFILEFIXUPTABLE(SELF);
-        PackFile_FixupTable * pftable = 
+        PackFile_FixupTable * pftable =
                 mem_allocate_zeroed_typed(PackFile_FixupTable);
         PMC                 * entry;
         PackFile_FixupEntry * val;
         opcode_t              i;
-        
+
         pftable->base.type   = PF_FIXUP_SEG;
         pftable->fixup_count = VTABLE_elements(interp, attrs->entries);
         pftable->fixups      = mem_allocate_n_typed(pftable->fixup_count,

Modified: branches/packfile_revamp/src/pmc/packfilerawsegment.pmc
==============================================================================
--- branches/packfile_revamp/src/pmc/packfilerawsegment.pmc	Sat Apr 11 07:41:51 2009	(r38054)
+++ branches/packfile_revamp/src/pmc/packfilerawsegment.pmc	Sat Apr 11 08:13:29 2009	(r38055)
@@ -54,7 +54,7 @@
 
 =item C<void mark()>
 
-Marks the object as live. 
+Marks the object as live.
 
 =cut
 


More information about the parrot-commits mailing list