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

Infinoid at svn.parrot.org Infinoid at svn.parrot.org
Mon Feb 9 15:11:25 UTC 2009


Author: Infinoid
Date: Mon Feb  9 15:11:25 2009
New Revision: 36490
URL: https://trac.parrot.org/parrot/changeset/36490

Log:
[cage] Fix some codingstd failures.  (This fixes everything but the PDD format failures for me.)

Modified:
   trunk/src/pmc/bignum.pmc
   trunk/src/runops_cores.c

Modified: trunk/src/pmc/bignum.pmc
==============================================================================
--- trunk/src/pmc/bignum.pmc	Mon Feb  9 15:04:13 2009	(r36489)
+++ trunk/src/pmc/bignum.pmc	Mon Feb  9 15:11:25 2009	(r36490)
@@ -377,7 +377,7 @@
     FLOATVAL b; /* bogus definition for users without libgmp*/
 } BIGNUM;
 
-#if 0
+#  if 0
 static void
 bignum_init(PARROT_INTERP, PMC *self) {
     Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_LIBRARY_ERROR,
@@ -389,7 +389,7 @@
     Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_LIBRARY_ERROR,
         "no bignum lib loaded");
 }
-#endif
+#  endif
 
 static void
 bignum_set_long(PARROT_INTERP, PMC *self, long value) {

Modified: trunk/src/runops_cores.c
==============================================================================
--- trunk/src/runops_cores.c	Mon Feb  9 15:04:13 2009	(r36489)
+++ trunk/src/runops_cores.c	Mon Feb  9 15:11:25 2009	(r36490)
@@ -42,10 +42,10 @@
 
   while(1) {
       pc = NEXT_OPCODE;
-	  if(pc < LOW_BOUND || pc > HIGH_BOUND)
-	      throw exception;
-	  DISPATCH_OPCODE(pc);
-	  UPDATE_INTERPRETER();
+      if(pc < LOW_BOUND || pc > HIGH_BOUND)
+          throw exception;
+      DISPATCH_OPCODE(pc);
+      UPDATE_INTERPRETER();
   }
 
 =head2 Fast Core
@@ -60,7 +60,7 @@
 
   while(1) {
       pc = NEXT_OPCODE;
-	  DISPATCH_OPCODE(pc);
+      DISPATCH_OPCODE(pc);
   }
 
 =head2 Switch Core
@@ -71,13 +71,13 @@
 
   for( ; ; current_opcode++) {
       switch(*current_opcode) {
-	      case opcode_1:
-		      ...
-	      case opcode_2:
-		      ...
-		  case opcode_3:
-		      ...
-	  }
+          case opcode_1:
+              ...
+          case opcode_2:
+              ...
+          case opcode_3:
+              ...
+      }
   }
 
 This is quite a fast architecture for dispatching opcodes because it all
@@ -110,10 +110,10 @@
 
   void *my_labels[] = {
       &&label1,
-	  &&label2,
-	  &&label3
+      &&label2,
+      &&label3
   };
-  
+
   label1:
       ...
   label2:


More information about the parrot-commits mailing list