[svn:parrot] r47947 - branches/gsoc_nfg/src/packfile

darbelo at svn.parrot.org darbelo at svn.parrot.org
Thu Jul 1 00:03:34 UTC 2010


Author: darbelo
Date: Thu Jul  1 00:03:33 2010
New Revision: 47947
URL: https://trac.parrot.org/parrot/changeset/47947

Log:
Fix indentation.

Modified:
   branches/gsoc_nfg/src/packfile/pf_items.c

Modified: branches/gsoc_nfg/src/packfile/pf_items.c
==============================================================================
--- branches/gsoc_nfg/src/packfile/pf_items.c	Wed Jun 30 23:57:17 2010	(r47946)
+++ branches/gsoc_nfg/src/packfile/pf_items.c	Thu Jul  1 00:03:33 2010	(r47947)
@@ -34,7 +34,7 @@
 
 #include "parrot/parrot.h"
 #if PARROT_HAS_ICU
-#include "../string/grapheme.h"
+#  include "../string/grapheme.h"
 #endif /* PARROT_HAS_ICU */
 
 /* HEADERIZER HFILE: include/parrot/packfile.h */
@@ -1353,9 +1353,9 @@
 
 #if PARROT_HAS_ICU
     if (s->extra) {
-       grapheme_table *table = (grapheme_table *) s->extra;
-       INTVAL i = 0;
-       *cursor++ = table->used;
+        grapheme_table *table = (grapheme_table *) s->extra;
+        INTVAL i = 0;
+        *cursor++ = table->used;
 
         for (i = 0; i < table->used; i++) {
             char *auxcursor;
@@ -1363,7 +1363,7 @@
             /* Store the length and then memcpy() the codepoints over. */
             *cursor++ = len;
             auxcursor = (char *) memcpy(cursor, table->graphemes[i].codepoints,
-                                        len * sizeof (UChar32));
+                                         len * sizeof (UChar32));
 
             /* Adjust the cursor, and auxcursor ... */
             cursor += ((len * sizeof (UChar32)) / sizeof (opcode_t));
@@ -1371,9 +1371,8 @@
             auxcursor += len * sizeof (UChar32);
 
             /* ...and pad the difference with zeros. */
-            while ((unsigned long) (auxcursor - (char *) cursor) % sizeof (opcode_t)){
-                *auxcursor++ = 0;
-            }
+            while ((unsigned long) (auxcursor - (char *) cursor) % sizeof (opcode_t))
+                 *auxcursor++ = 0;
         }
     }
     else {


More information about the parrot-commits mailing list