From 13e9d208a39ce765dc4921448ebed81824f30b10 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 6 Jul 2015 13:20:26 +0000 Subject: [PATCH] replace // comments with /* */ comments 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 | 22 +++++++++++++--------- tests/check_check_sub.c | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/check_check_master.c b/tests/check_check_master.c index fc5248f..47aed59 100644 --- a/tests/check_check_master.c +++ b/tests/check_check_master.c @@ -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); diff --git a/tests/check_check_sub.c b/tests/check_check_sub.c index 276bca9..519c1db 100644 --- a/tests/check_check_sub.c +++ b/tests/check_check_sub.c @@ -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); -- 2.50.1