lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r692330 - in /lucene/lucy/trunk/charmonizer/src/Charmonizer: Probe/FuncMacro.charm Probe/VariadicMacros.charm Test.charm Test.harm
Date Fri, 05 Sep 2008 03:51:47 GMT
Author: marvin
Date: Thu Sep  4 20:51:46 2008
New Revision: 692330

URL: http://svn.apache.org/viewvc?rev=692330&view=rev
Log:
Replace tabs with spaces.

Modified:
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/FuncMacro.charm
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/VariadicMacros.charm
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.charm
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.harm

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/FuncMacro.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/FuncMacro.charm?rev=692330&r1=692329&r2=692330&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/FuncMacro.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/FuncMacro.charm Thu Sep  4 20:51:46
2008
@@ -63,7 +63,7 @@
             ? "__func__"
             : "__FUNCTION__";
         append_conf(
-			"#define %sHAS_FUNC_MACRO\n"
+            "#define %sHAS_FUNC_MACRO\n"
             "#define %sFUNC_MACRO %s\n",
             macro_prefix, macro_prefix, macro_text);
     }
@@ -76,7 +76,7 @@
         append_conf("#define %sHAS_GNUC_FUNC_MACRO\n", macro_prefix);
     }
 
-	/* shorten */
+    /* shorten */
     if (want_short_names) {
         START_SHORT_NAMES;
         if (has_iso_funcmac) 

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/VariadicMacros.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/VariadicMacros.charm?rev=692330&r1=692329&r2=692330&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/VariadicMacros.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/VariadicMacros.charm Thu Sep  4 20:51:46
2008
@@ -66,7 +66,7 @@
             macro_prefix);
     }
 
-	/* shorten */
+    /* shorten */
     if (want_short_names) {
         START_SHORT_NAMES;
         if (has_varmacros)

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.charm?rev=692330&r1=692329&r2=692330&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.charm Thu Sep  4 20:51:46 2008
@@ -14,22 +14,22 @@
 
 void
 chaz_Test_init(void) {
-	/* unbuffer stdout */
-	int check_val = setvbuf(stdout, NULL, _IONBF, 0);
-	if (check_val != 0)
-		fprintf(stderr, "Failed when trying to unbuffer stdout\n");
+    /* unbuffer stdout */
+    int check_val = setvbuf(stdout, NULL, _IONBF, 0);
+    if (check_val != 0)
+        fprintf(stderr, "Failed when trying to unbuffer stdout\n");
 }
 
 TestBatch* 
 chaz_Test_new_batch(const char *batch_name, unsigned num_tests,
-				    TestBatch_test_func_t test_func)
+                    TestBatch_test_func_t test_func)
 {
     TestBatch *batch = (TestBatch*)malloc(sizeof(TestBatch));
 
     /* assign */
     batch->num_tests       = num_tests;
-	batch->name            = strdup(batch_name);
-	batch->test_func       = test_func;
+    batch->name            = strdup(batch_name);
+    batch->test_func       = test_func;
     
     /* initialize */
     batch->test_num        = 0;
@@ -37,7 +37,7 @@
     batch->num_failed      = 0;
     batch->num_skipped     = 0;
     batch->destroy         = TestBatch_destroy;
-	batch->run_test        = TestBatch_run_test;
+    batch->run_test        = TestBatch_run_test;
 
     return batch;
 }
@@ -45,26 +45,26 @@
 static void
 TestBatch_destroy(TestBatch *batch)
 {
-	free(batch->name);
+    free(batch->name);
     free(batch);
 }
 
 static void
 TestBatch_run_test(TestBatch *batch) 
 {
-	/* print start */
-	printf("===================================\n");
-	printf("%s - %u tests to run\n", batch->name, batch->num_tests);
-	printf("===================================\n");
-
-	/* run the batch */
-	batch->test_func(batch);
-
-	/* print report */
-	printf("-------------------------\n");
-	printf("Tests:   %d\nPassed:  %d\nFailed:  %d\nSkipped: %d\n\n",
-		batch->num_tests, batch->num_passed, batch->num_failed, 
-		batch->num_skipped);
+    /* print start */
+    printf("===================================\n");
+    printf("%s - %u tests to run\n", batch->name, batch->num_tests);
+    printf("===================================\n");
+
+    /* run the batch */
+    batch->test_func(batch);
+
+    /* print report */
+    printf("-------------------------\n");
+    printf("Tests:   %d\nPassed:  %d\nFailed:  %d\nSkipped: %d\n\n",
+        batch->num_tests, batch->num_passed, batch->num_failed, 
+        batch->num_skipped);
 }
 
 void

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.harm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.harm?rev=692330&r1=692329&r2=692330&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.harm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Test.harm Thu Sep  4 20:51:46 2008
@@ -45,7 +45,7 @@
  */
 chaz_TestBatch* 
 chaz_Test_new_batch(const char *batch_name, unsigned num_tests,
-				    chaz_TestBatch_test_func_t test_func);
+                    chaz_TestBatch_test_func_t test_func);
 
 /* Note: maybe add line numbers later.
  */



Mime
View raw message