From a6cb9f8accbed04c936f7fe4ac031445de9112f3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 16 Mar 2012 17:08:14 -0500 Subject: [PATCH] Cleanup: Remove () from while comment The end of a while loop comment will no longer have open close parenthesis. Thus: while (f_true) { // .. } // while() Now becomes: while (f_true) { // .. } // while --- level_1/fl_console/c/console.c | 6 +++--- level_1/fl_strings/c/strings.c | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/level_1/fl_console/c/console.c b/level_1/fl_console/c/console.c index bb9cbbc..e89fc49 100644 --- a/level_1/fl_console/c/console.c +++ b/level_1/fl_console/c/console.c @@ -100,7 +100,7 @@ extern "C"{ } // for() sub_location += increments; - } // while() + } // while // now handle the inverse commands } else if (argv[location][0] == f_console_symbol_disable) { @@ -152,7 +152,7 @@ extern "C"{ } // for() sub_location += increments; - } // while() + } // while } else { // use found to determine if the remaining parameter should be populated found = f_false; @@ -204,7 +204,7 @@ extern "C"{ } ++location; - } // while() + } // while if (extra_initiator.used > 0) { status = f_no_data; diff --git a/level_1/fl_strings/c/strings.c b/level_1/fl_strings/c/strings.c index b3de206..88baa84 100644 --- a/level_1/fl_strings/c/strings.c +++ b/level_1/fl_strings/c/strings.c @@ -59,7 +59,7 @@ extern "C"{ if (position->start >= buffer.used) return f_none_on_eos; if (position->start > position->stop) return f_none_on_stop; - } // while() + } // while return f_none; } @@ -81,7 +81,7 @@ extern "C"{ if (position->start >= buffer.used) return f_none_on_eos; if (position->start > position->stop) return f_none_on_stop; - } // while() + } // while return f_none; } @@ -103,7 +103,7 @@ extern "C"{ if (position->start >= buffer.used) return f_none_on_eos; if (position->start > position->stop) return f_none_on_stop; - } // while() + } // while return f_none; } @@ -132,12 +132,12 @@ extern "C"{ while (i1 < stop1) { if (string1[i1] != f_eos) return f_not_equal_to; i1++; - } // while() + } // while while (i2 < stop2) { if (string2[i2] != f_eos) return f_not_equal_to; i2++; - } // while() + } // while return f_equal_to; } @@ -169,12 +169,12 @@ extern "C"{ while (i1 < stop1) { if (string1.string[i1] != f_eos) return f_not_equal_to; i1++; - } // while() + } // while while (i2 < stop2) { if (string2.string[i2] != f_eos) return f_not_equal_to; i2++; - } // while() + } // while return f_equal_to; } @@ -212,12 +212,12 @@ extern "C"{ while (i1 < stop1) { if (string1.string[i1] != f_eos) return f_not_equal_to; i1++; - } // while() + } // while while (i2 < stop2) { if (string2.string[i2] != f_eos) return f_not_equal_to; i2++; - } // while() + } // while return f_equal_to; } -- 1.8.3.1