]> granicus.if.org Git - check/commitdiff
replace // comments with /* */ comments
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 6 Jul 2015 13:20:26 +0000 (13:20 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 6 Jul 2015 13:20:26 +0000 (13:20 +0000)
Some compilers are strict with only accepting C style
block comments

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1212 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/check_check_master.c
tests/check_check_sub.c

index fc5248f2ae1c976b5988b6c36974694f3c46e57b..47aed59d433954a050a5949f716260929f7de780 100644 (file)
@@ -291,7 +291,7 @@ char * escape_percent(const char *original, size_t original_size)
     result[write_index] = original[read_index];
     if(result[write_index] == '%')
     {
-      // Place a duplicate % next to the one just read, to escape it
+      /* Place a duplicate % next to the one just read, to escape it */
       result[++write_index] = '%';
     }
   }
@@ -324,10 +324,12 @@ START_TEST(test_check_failure_msgs)
       snprintf(tmp, MAXSTR,"For test %d: Expected %s, got %s",
                i, expected_msg, got_msg);
 
-      // NOTE: ck_abort_msg() will take the passed string
-      // and feed it to printf. We need to escape any
-      // '%' found, else they will result in odd formatting
-      // in ck_abort_msg().
+      /*
+       * NOTE: ck_abort_msg() will take the passed string
+       * and feed it to printf. We need to escape any
+       * '%' found, else they will result in odd formatting
+       * in ck_abort_msg().
+       */
       char *emsg = escape_percent(tmp, MAXSTR);
       free(tmp);
 
@@ -439,10 +441,12 @@ START_TEST(test_check_all_msgs)
     snprintf(tmp, MAXSTR,"Expected %s, got %s",
              master_tests[_i].msg, msg);
 
-    // NOTE: ck_abort_msg() will take the passed string
-    // and feed it to printf. We need to escape any
-    // '%' found, else they will result in odd formatting
-    // in ck_abort_msg().
+   /*
+    * NOTE: ck_abort_msg() will take the passed string
+    * and feed it to printf. We need to escape any
+    * '%' found, else they will result in odd formatting
+    * in ck_abort_msg().
+    */
     char *emsg = escape_percent(tmp, MAXSTR);
     free(tmp);
 
index 276bca9525a7cd98b4932ac1096a22bb2f814ab2..519c1dbfe121f0a94226a24f3ccb722fb403347c 100644 (file)
@@ -872,7 +872,7 @@ Suite *make_sub2_suite(void)
 void exit_handler(void);
 void exit_handler ()
 {
-  // This exit handler should never be executed
+  /* This exit handler should never be executed */
   while(1)
   {
     sleep(1);